Hello!

Sorry for my English.

I use Feeds Importers to import csv-files which include file paths like this:

public://traits/class/Tlpat_(Warn_gl).png

Before module update the files loaded properly, without any problems. Now I receive an error message:

The specified file public://traits/class/tlpat_warn_gl.png could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

Could you tell me how do I fix it?

Sorry if i did something wrong when was posting this message.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ArtoRovie’s picture

I checked on the Alpha 8 - there is no problem. Only on Alpha 9.

twistor’s picture

Title: File names with parenthesis and capital letters » Only transliterate downloaded files.
Version: 7.x-2.0-alpha9 » 7.x-2.x-dev
Category: Support request » Bug report
Status: Active » Needs review
FileSize
1.29 KB

If you could apply this patch and test, that would be great.

If not, are you using the transliteration module?

ArtoRovie’s picture

The patch gives the eror on Alpha 9:

Checking patch plugins/FeedsParser.inc...
error: while searching for:

    $filename = rawurldecode(drupal_basename($filename));

    if (module_exists('transliteration')) {
      require_once drupal_get_path('module', 'transliteration') . '/transliteration.inc';
      $filename = transliteration_clean_filename($filename);
    }

    // Remove leading and trailing whitespace and periods.
    $filename = trim($filename, " \t\n\r\0\x0B.");


error: patch failed: plugins/FeedsParser.inc:377
error: plugins/FeedsParser.inc: patch does not apply

Yes, I use the transliteration module.

twistor’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha9

Right, that patch is for 7.x-2.x-dev.

It will apply to alpha9 if you do git apply -3 feeds-only-transliterate-downloads-2515196-2.patch

twistor’s picture

Version: 7.x-2.0-alpha9 » 7.x-2.x-dev
ArtoRovie’s picture

It works on 7.x-2.x-dev. Thank you for help!

  • twistor committed 35b8a63 on 7.x-2.x
    Issue #2515196 by twistor: Only transliterate downloaded files.
    
twistor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.