Attachment Dashes

Steps to reproduce bug

  1. Go to https://virtualmin.com/node/add/project-issue/virtualmin_com
  2. Attach a file with the following naming. Double check that the file name includes three dashed "---". For example: change-mysql-password---screenshot---ubertus---325.jpg
  3. Save that ticket/issue
  4. Try to view that file you just attached. Drupal returns that error message:
    1. Page not found
      The requested page "/sites/default/files/issues/change-mysql-password-" could not be found.
  5. Expected result is user should be able to upload file with any names. Then Drupal would automatically rename them appropriately. After that Drupal would set appropriate path to that renamed file.

The Drupal module transliteration might resolve that issue

We would be happy to contribute testing on virtualmin.com

Status: 
Closed (fixed)

Comments

Assigned: Unassigned »
Joe's picture
Submitted by Joe on Sat, 12/03/2016 - 18:49 Pro Licensee

Goodness, that's above my pay grade when it comes to Drupal! I looked at the transliteration module, and I don't see an indication that it'll handle this case, but I'll try installing it on my dev instance and see if it resolves the problem.

Joe's picture
Submitted by Joe on Sat, 12/03/2016 - 19:19 Pro Licensee

Actually, I think you're right about the fix. On the dev system, I was able to upload and view that file. So, I'll test it a bit more thoroughly, and then roll it out here.

Thanks for the heads up and for the solution!

Joe's picture
Submitted by Joe on Sat, 12/03/2016 - 19:24 Pro Licensee

Status: Active » Fixed

Totally fixed. Thanks again!

Francewhoa's picture
Submitted by Francewhoa on Sat, 12/03/2016 - 22:10

Thanks Joe :) I'm happy to hear it is fix. Yayaya :)

I also tested that fix with this newly attached file. Confirming that fix works.

We faced the same challenge at Ubertus with multiple Drupal sites. That Drupal module fixed it. By the way, that module is very stable. Also has a large and friendly community around it 279,076+ users reported. With more than 1.4+ million download.