Charm store returns 404 for URLs containing trailing slash.

Bug #1138085 reported by Andrew Glen-Young
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
New
Undecided
Unassigned

Bug Description

While browsing a specific Precise charm I decided to browse all the charms. Instead of clicking the link, I removed the <charm-name> portion in the address bar field and hit enter. The store then returned a 404 error message. After a little playing around it seems that the store does this for URLs containing a trailing slash.

Examples:

  * http://jujucharms.com/charms/precise/glance - this works
  * http://jujucharms.com/charms/precise/glance/ - this returns a 404

  * http://jujucharms.com/charms/precise - this works
  * http://jujucharms.com/charms/precise/ - this returns a 404

Example 404 Error Message:

404 Not Found
The resource could not be found.

/charms/precise/glance/

While most people would click around and not discover the problem, it does seem to me to be a better idea to return the resource as the user expects (or redirect to the correct URL). The above error message indicates that the resource does exist at, while it really does.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.