URL for an image does not work if opened directly

Bug #1699497 reported by Yuriy Zveryanskyy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Undecided
Unassigned

Bug Description

For example:

Page not found (404)
Request Method: GET
Request URL: http://192.168.122.81/dashboard/ngdetails/OS::Glance::Image/8e69901b-7954-49aa-b3d5-cb1493acd175

Using the URLconf defined in openstack_dashboard.urls, Django tried these URL patterns, in this order:

    ^$ [name='splash']
    ^api/
    ^home/$ [name='user_home']
    ^i18n/js/(?P<packages>\S+?)/$ [name='jsi18n']
    ^i18n/setlang/$ [name='set_language']
    ^i18n/
    ^jasmine-legacy/$ [name='jasmine_tests']
    ^jasmine/.*?$
    ^identity/
    ^settings/
    ^admin/
    ^project/
    ^auth/
    ^dashboard\/static\/(?P<path>.*)$
    ^dashboard\/media\/(?P<path>.*)$
    ^500/$

The current URL, ngdetails/OS::Glance::Image/8e69901b-7954-49aa-b3d5-cb1493acd175, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

I am unable to reproduce this. This is the type of URL that is generated on the Project > Compute > Images page and placed into the name field. Can you provide any additional information about how you were able to produce this error? Is it possible that after displaying the image list but before navigating to the URL that someone deleted the image?

Changed in horizon:
status: New → Incomplete
Revision history for this message
Akihiro Motoki (amotoki) wrote :

This can be easily reproduced by specifying the URL of the detail page directly.
I believe this is the same issue as https://bugs.launchpad.net/horizon/+bug/1681627.
The URL like http://192.168.122.81/dashboard/ngdetails/OS::Glance::Image/8e69901b-7954-49aa-b3d5-cb1493acd175 is generated by AngularJS and it is not defined as Django URLconf, so if we specify the URL directly 404 error will be returned.

Changed in horizon:
status: Incomplete → Confirmed
summary: - Link for an image does not work
+ URL for an image does not work if opened directly
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.