Mobile app version of vmapp.org
Login or Join
Pope3001725

: URL parameter names being changed by user agents In reviewing one of our site's web logs I'm seeing instances where we are returning a 404 to requests because we're expecting an id parameter

@Pope3001725

Posted in: #UrlParameters

In reviewing one of our site's web logs I'm seeing instances where we are returning a 404 to requests because we're expecting an id parameter to be sent, but instead we're seeing a di parameter.

The resource in question is an image but which image file actually gets served is dependent on the id parameter. The expected url is something like images.mysite.com/photo.gif?id=123&width=200&height=300
What I'm seeing in the logs is requests for images.mysite.com/photo.gif?di=123&width=200&height=300
The only case where we are seeing this on the id parameter.

It seems unlikely that this is due to a server side or JavaScript bug since it seems to be only effecting a small percentage of our traffic. We are seeing this across a wide variety of user agents (both mobile and desktop) and IPs. Has anyone else seen this? Is there a browser plugin or other software you're aware of that could be causing this, and if so is there a good way to work around the issue?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

I'd scan the source of your site with grep in linux or totalcommander in windows for any instance of di or since you know the functions that are generating the image URL search the files containing those functions first.

Check if it's happening only for specific images in your application if so which images and what parts of your app are they being used in.

It's unlikely any browser plugin is reversing id to di though javascript / jQuery could do that. Server side code may also do it but it's probably just a typo.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme