Skip to content

IOError: [Errno 36] File name too long #292

@rfelten

Description

@rfelten

Hi,
using DumpGenerator 0.3.0-alpha on 4.4.0-59-generic #80-Ubuntu x86_64 and I ran into issues to dump from http://www.kochwiki.org/w/api.php to an encryptfs'ed file system.

Stacktrace:

$ python dumpgenerator.py --api=http://www.kochwiki.org/w/api.php --xml --curonly --path=/home/rf/Projects/kochen/KochWiki --resume 
Checking API... http://www.kochwiki.org/w/api.php
API is OK: http://www.kochwiki.org/w/api.php
Checking index.php... http://www.kochwiki.org/w/index.php
index.php is OK
#########################################################################
# Welcome to DumpGenerator 0.3.0-alpha by WikiTeam (GPL v3)                   #
# More info at: https://github.com/WikiTeam/wikiteam                    #
#########################################################################

#########################################################################
# Copyright (C) 2011-2017 WikiTeam developers                           #

# This program is free software: you can redistribute it and/or modify  #
# it under the terms of the GNU General Public License as published by  #
# the Free Software Foundation, either version 3 of the License, or     #
# (at your option) any later version.                                   #
#                                                                       #
# This program is distributed in the hope that it will be useful,       #
# but WITHOUT ANY WARRANTY; without even the implied warranty of        #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
# GNU General Public License for more details.                          #
#                                                                       #
# You should have received a copy of the GNU General Public License     #
# along with this program.  If not, see <http://www.gnu.org/licenses/>. #
#########################################################################

Analysing http://www.kochwiki.org/w/api.php
Loading config file...
Resuming previous dump process...
Title list was completed in the previous session
XML dump was completed in the previous session
Image list was completed in the previous session
365 images were found in the directory from a previous session
Retrieving images from "Assortiment de différentes préparation à bases de légumes et féculents, bien sur servit avec de l'injara.JPG"
Filename is too long, truncating. Now it is: Assortiment de différentes préparation à bases de légumes et féculents, bien sur servit avec de l'inf1f192008cca2209820a6db246f5e3b1.JPG
Traceback (most recent call last):
  File "dumpgenerator.py", line 2093, in <module>
    main()
  File "dumpgenerator.py", line 2083, in main
    resumePreviousDump(config=config, other=other)
  File "dumpgenerator.py", line 1808, in resumePreviousDump
    session=other['session'])
  File "dumpgenerator.py", line 1126, in generateImageDump
    f = open('%s/%s.desc' % (imagepath, filename2), 'w')
IOError: [Errno 36] File name too long: u"/home/rf/Projects/kochen/KochWiki/images/Assortiment de diff\xe9rentes pr\xe9paration \xe0 bases de l\xe9gumes et f\xe9culents, bien sur servit avec de l'inf1f192008cca2209820a6db246f5e3b1.JPG.desc"

The encryptfs file system supports filenames up to ~140 chars (source).

The dumpgenerator.py contains code to trim file names if they are too long - which failed here. Therefore I consider this as bug ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions