Git Product home page Git Product logo

Comments (6)

adrian-bl avatar adrian-bl commented on August 19, 2024

Could you please clarify this issue?

Does this affect BitTorrent or HTTP Downloads or the Web-UI?

from bitflu.

zenochen avatar zenochen commented on August 19, 2024

BitTorrent can transfer the files, but bitflu cannot.
i used bitflu as the upload server, and the others used bitflu as client.
in the upload server, it always cannot complete
++++++++++++++++++++++++++++++++++++

Welcome to Bitflu

bitflu> vd
*** Upload: 0.00 KiB/s | Download: 0.33 KiB/s | Peers: 0/ 1
[Type] Name /================ Hash ================\ Peers Pieces Done (MB) Done Ratio Up Down ETA
[ bt ] yihaodian/b2b-central_1 c533ebac99c0542a837c7dd577c69ee49b3247be 0/ 0 285/ 286 79.2/ 79.5 99% 2.00 0.0 0.0 34m
[ bt ] yihaodian/central_3 f0435e13b888035449df9a2f235b0cc004842654 0/ 1 100/ 102 9.9/ 10.1 98% 4.00 0.0 0.0 25m
+++++++++++++++++++++++++++++++++++++++++++++++++++
some file with . prefix will be rename to _ prefix.
but space included filename will not, the upload server's pregress is less than 100%, also the client.
and the left files are including space in name or with . prefix.
i have read your code, i think maybe the problem is create the torrent, Thanks.

from bitflu.

zenochen avatar zenochen commented on August 19, 2024

have a look at my picture,

first i found .md5sum cannot be download, and i find the client has renamed the file to _md5sum

later i rename the file .md5sum to _md5sum in the server, it can transfer, so i think the . is the problem

the .idea is replaced to _idea by bitflu automatically too, It cannot be download, Later, I rename to _idea in the server , but i also cannot be download

because this time _idea's parent directory is "Pro Demo", include a space, so it stop again

if i rename the "Pro Demo" to "Pro_Demo", there is no problem.

Thanks,
Zhong

Date: Tue, 31 Jul 2012 13:17:24 -0700
From: [email protected]
To: [email protected]
Subject: Re: [bitflu] some files can not in the transmission‏ (#13)

Could you please clarify this issue?

Does this affect BitTorrent or HTTP Downloads or the Web-UI?


Reply to this email directly or view it on GitHub:
#13 (comment)

from bitflu.

zenochen avatar zenochen commented on August 19, 2024

I fixed the . problem, in the file 00_StorageVFS.pm
comment the line 671
##########################################################################
sub FsSaveDirent {
my($self, $val) = @
;
$val =~ tr//\0\n\r//;
#$val =~ s/^..?/
/;
$val ||= "NULL";
$val = "@LongName_".$self->{super}->Tools->sha1_hex($val) if length($val) > VFS_FNAME_MAX;
return $val;
}

from bitflu.

adrian-bl avatar adrian-bl commented on August 19, 2024

Removing this regexp introduces a security issue as a malicious torrent could write data outside it's own directory.

However: If you only create your own torrents, it won't be a problem.

from bitflu.

zenochen avatar zenochen commented on August 19, 2024

Then we use the line below will be better?

$val =~ s/.{2,}//g;

to avoid the security issue.

because some times we have the hidden files like .htaccess

Thanks for you relies.

from bitflu.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.