[Bug 1681627] Re: [SRU] Page not found error on refreshing bowser (in AngularJS-based detail page)

Hua Zhang joshua.zhang at canonical.com
Wed Apr 3 03:50:03 UTC 2019


** Summary changed:

- Page not found error on refreshing bowser (in AngularJS-based detail page)
+ [SRU] Page not found error on refreshing bowser (in AngularJS-based detail page)

** Description changed:

+ [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/

** Tags added: sts sts-sru-needed

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
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:
  New
Status in Ubuntu Cloud Archive ocata series:
  New
Status in Ubuntu Cloud Archive pike series:
  Fix Committed
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



More information about the Ubuntu-openstack-bugs mailing list