Drupalers,
I went looking through my watchdog tonight (really should do that more) -- at: admin/logs/watchdog
and I noticed that there were some page not found errors for file downloads like this:
File name is: example file.doc
The URL that works is: example.com/files/example%20file.doc
The URL that is showing up on the watchdog page-not-found entry is: example.com/files/example%2520file.doc
Testing from my own browsers I couldn't repeat the problem.
What browser or what situation is causing the space to be replaced by %2520 instead of %20? Has anyone ever seen this before? Is there a utility for the upload module that rips out spaces from file names? I'm having a problem with Thickbox having trouble with images with spaces in their names.
Looking forward to hear about others' experiences on this one.
Thanks,
Shai
Quoting Shai Gluskin shai@content2zero.com:
Drupalers,
I went looking through my watchdog tonight (really should do that more) -- at: admin/logs/watchdog
and I noticed that there were some page not found errors for file downloads like this:
File name is: example file.doc
The URL that works is: example.com/files/example%20file.doc
The URL that is showing up on the watchdog page-not-found entry is: example.com/files/example%2520file.doc
Testing from my own browsers I couldn't repeat the problem.
What browser or what situation is causing the space to be replaced by %2520 instead of %20? Has anyone ever seen this before? Is there a utility for the upload module that rips out spaces from file names? I'm having a problem with Thickbox having trouble with images with spaces in their names.
Looking forward to hear about others' experiences on this one.
Drupal version and contrib modules list are needed to dissect this. Looks like the URL is encoded twice by some means. %25 == % [1].
[1] http://www.w3schools.com/TAGS/ref_urlencode.asp
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Ernie and all...,
Thanks for getting back to me.
I'm using Drupal 5.7. I'd list modules but I'm almost certain now that the problem isn't a Drupal problem. I'm pretty sure the problem occurs when someone attempts to provide a direct url to the file and sends it via e-mail -- and then somebody's email client messes up the URL. The "refferer" URL's are usually missing from the watchdog page which means the links aren't coming from inside Drupal.
Even though this problem isn't being caused by Drupal, I'd still love to have a way to strip out spaces from file names upon upload just to prevent this problem.
Shai
On Wed, May 14, 2008 at 7:47 AM, Earnie Boyd earnie@users.sourceforge.net wrote:
Quoting Shai Gluskin shai@content2zero.com:
Drupalers,
I went looking through my watchdog tonight (really should do that more)
--
at: admin/logs/watchdog
and I noticed that there were some page not found errors for file
downloads
like this:
File name is: example file.doc
The URL that works is: example.com/files/example%20file.doc
The URL that is showing up on the watchdog page-not-found entry is: example.com/files/example%2520file.doc
Testing from my own browsers I couldn't repeat the problem.
What browser or what situation is causing the space to be replaced by
%2520
instead of %20? Has anyone ever seen this before? Is there a utility for
the
upload module that rips out spaces from file names? I'm having a problem with Thickbox having trouble with images with spaces in their names.
Looking forward to hear about others' experiences on this one.
Drupal version and contrib modules list are needed to dissect this. Looks like the URL is encoded twice by some means. %25 == % [1].
[1] http://www.w3schools.com/TAGS/ref_urlencode.asp
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
I'm using Drupal 5.7. I'd list modules but I'm almost certain now that the problem isn't a Drupal problem. I'm pretty sure the problem occurs when someone attempts to provide a direct url to the file and sends it via e-mail -- and then somebody's email client messes up the URL. The "refferer" URL's are usually missing from the watchdog page which means the links aren't coming from inside Drupal.
I have a Drupal 5.7 site and imagecache seems sometimes (not every time however IIRC) to fail to create a cached image for filesnames with spaces.
Fred
Fred and all,
Yes, I've had that problem too (on a Linux box). Any word yet on whether the spankin' new imagecache 2 fixes that problem?
Shai
On Wed, May 14, 2008 at 11:45 AM, Fred Jones fredthejonester@gmail.com wrote:
I'm using Drupal 5.7. I'd list modules but I'm almost certain now that the problem isn't a Drupal problem. I'm pretty sure the problem occurs when someone attempts to provide a direct url to the file and sends it via e-mail -- and then somebody's email client messes up the URL. The "refferer" URL's are usually missing from the watchdog page which means the links aren't coming from inside Drupal.
I have a Drupal 5.7 site and imagecache seems sometimes (not every time however IIRC) to fail to create a cached image for filesnames with spaces.
Fred
[ Drupal support list | http://lists.drupal.org/ ]
There are multiple posts about the Transliteration module helping solve this problem.
http://drupal.org/search/node/Imagecache+transliteration
Steve
Shai Gluskin wrote:
Fred and all,
Yes, I've had that problem too (on a Linux box). Any word yet on whether the spankin' new imagecache 2 fixes that problem?
Shai
On Wed, May 14, 2008 at 11:45 AM, Fred Jones <fredthejonester@gmail.com mailto:fredthejonester@gmail.com> wrote:
> I'm using Drupal 5.7. I'd list modules but I'm almost certain now that > the problem isn't a Drupal problem. I'm pretty sure the problem occurs > when someone attempts to provide a direct url to the file and sends it > via e-mail -- and then somebody's email client messes up the URL. The > "refferer" URL's are usually missing from the watchdog page which means > the links aren't coming from inside Drupal. > I have a Drupal 5.7 site and imagecache seems sometimes (not every time however IIRC) to fail to create a cached image for filesnames with spaces. Fred -- [ Drupal support list | http://lists.drupal.org/ ]