I/O Error: File name is too long

Bug #739518 reported by proDOOMman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
High
Christophe Dumez

Bug Description

Some torrent files includes files with cyrrilic names and length more than 128 chars. For example: http://rutracker.org/forum/viewtopic.php?t=1445641
When qbittorrent tries to create this file on linux, it emits error: "I/O Error: File name is too large"
Please, add workaround for this bug. For example if file name is too long, rename it to something else
More information about this: https://bbs.archlinux.org/viewtopic.php?id=89174

Tags: linux
Revision history for this message
proDOOMman (prodoomman) wrote :
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Could you please attach the torrent instead of the link? I'm not registered with this tracker.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

And why do you say 128 chars? As far as I know, ext3 and ext4 support 255 chars. 255 bytes in UTF-8 (1 byte per character).

However, I do agree that renaming on the fly to avoid this problem would be useful.

Revision history for this message
proDOOMman (prodoomman) wrote :
Revision history for this message
proDOOMman (prodoomman) wrote :

>And why do you say 128 chars?
May be this is my mistake. I take this information from russian site http://welinux.ru/post/5307/

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This was fixed n SVN for v2.7.1, thanks a lot!

You were actually partially right. Some languages such as Russian and Chinese need more than 1 byte per character/idiogram (2 bytes for Cyrillic and 3 bytes for Chinese idiograms). The patch should work for all languages and I confirmed that it works fine with the torrent you provided.

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
importance: Undecided → High
milestone: none → 2.7.1
status: New → Fix Committed
Revision history for this message
proDOOMman (prodoomman) wrote :

Thank you for this fix. You work so fast!

Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
gwern (gwern0) wrote :

How exactly does this patch fix the issue?

I installed Debian unstable's 2.9.2-1 package to try to download http://www.nyaa.eu/?page=torrentinfo&tid=256613 and when I load the .torrent as an argument, qbittorrent seems to ignore it, and when I load it with 'add', it ignores it; when I use the import-existing-torrent function, the moment I select that torrent, qbittorrent immediately tells me that it is an invalid .torrent.

So does all this patch do is not let one run a torrent with long file names?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.