Glance JS API getImage() is inefficient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Matt Borland |
Bug Description
The Glance API JS has a getImage() function that calls '/api/glance/
If the API is just called with a trailing slash, the API responds directly with the result, which is a bit faster.
You can verify the bug and fix by watching the server in dev mode when going to the Angular Image Detail page. You will see a 301 call immediately followed by another call with the trailing slash. You can see this in the JavaScript window as well.
After applying the fix, you should no longer see the 301 result as there will be no call for the resource without the trailing slash.
Changed in horizon: | |
importance: | Undecided → Low |
milestone: | none → newton-1 |
Fix proposed to branch: master /review. openstack. org/294789
Review: https:/