yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78817
[Bug 1681627] Re: [SRU] Page not found error on refreshing bowser (in AngularJS-based detail page)
This bug was fixed in the package horizon - 3:11.0.4-0ubuntu1~cloud2.6
---------------
horizon (3:11.0.4-0ubuntu1~cloud2.6) xenial-ocata; urgency=medium
.
* Enable to refresh ngdetails view (LP: #1681627)
- d/p/0001-Enable-to-refresh-ngdetails-view.patch
- d/p/0002-Fix-Angular-errors-in-openstack_auth.patch
** Changed in: cloud-archive/ocata
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1681627
Title:
[SRU] Page not found error on refreshing bowser (in AngularJS-based
detail page)
Status in Ubuntu Cloud Archive:
Invalid
Status in Ubuntu Cloud Archive ocata series:
Fix Released
Status in Ubuntu Cloud Archive pike series:
Fix Released
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in Zun UI:
Fix Released
Bug description:
[Impact]
When clicking instances snapshot detail on Images menu and then refresh the pages will get an error:
```
The page you were looking for doesn't exist
You may have mistyped the address or the page may have moved.
```
[Test Case]
1. Deply a OpenStack env with horizon
2. Click instances snapshot detail on Images menu
3. Refresh the page
4. Check if you will see the error 'The page you were looking for doesn't exist'
[Regression Potential]
This problem has been fixed in Queens with two patches [1][2], we need
to backport them into Ocata as well.
But in fact, directly backporting these two primitive patches [1][2]
into Ocata will not be able to work, because:
1, In Ocata release, getDetailsPath returns
"'project/ngdetails/OS::Glance::Image/' + item.id;"
https://github.com/openstack/horizon/blob/stable/ocata/openstack_dashboard/static/app/core/images/images.service.js#L59
function getDetailsPath(item) {
return 'project/ngdetails/OS::Glance::Image/' + item.id;
}
2, In > Ocata release, eg: Pike release, getDetailsPath returns
"detailRoute + 'OS::Glance::Image/' + item.id"
https://github.com/openstack/horizon/blob/stable/pike/openstack_dashboard/static/app/core/images/images.service.js#L69
function getDetailsPath(item) {
return detailRoute + 'OS::Glance::Image/' + item.id;
}
So we will see the error 'The current URL,
project/ngdetails/OS::Glance::Image/46ef8cab-dfc3-4690-8abb-
d416978d237e, didn't match any of these.' when backporting two
primitive patches into Ocata. So the following simple changes need to
be made in urls.py in addition to the primitive backport patches as
well.
-ngdetails_url = url(r'^ngdetails/',
+ngdetails_url = url(r'^project/ngdetails/',
[1] https://review.openstack.org/#/c/541676/
[2] https://review.openstack.org/#/c/553970/
[Original Bug Report]
Once I get into the container detail view, refresh the browser will
show a page not found error:
The current URL, ngdetails/OS::Zun::Container/c54ba416-a955-45b2
-848b-aee57b748e08, didn't match any of these
Full output: http://paste.openstack.org/show/605296/
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1681627/+subscriptions