Comments (6)
Could you please clarify this issue?
Does this affect BitTorrent or HTTP Downloads or the Web-UI?
from bitflu.
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.
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.
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.
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.
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)
- downspeed spikes HOT 1
- magnet tracker support HOT 1
- create no_datafsync option
- implement 'vote' support HOT 1
- Any docs about writing plugins for bitflu? HOT 1
- [feature request] Per-torrent ratio ? HOT 2
- autocancel not ignoring value less than 1.0 HOT 1
- No way to "move" cancelled / autocancelled torrents back to seeding without redownloading them HOT 1
- Issues with private trackers HOT 3
- include -exclude
- Including next-to-last file in torrent automatically includes the last file, which can't then be excluded HOT 2
- ipv6 udp trackers
- files $sha1 preview HOT 1
- webui: disk-free bar HOT 1
- bencfile-to-hash should not read the whole file HOT 1
- own DNS resolver
- autload stops working if a zero-lenght file is present HOT 4
- optimistic bootstrap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitflu.