TECHZEN Zenoss User Community ARCHIVE  

Login page came_from parameter problems

Subject: Login page came_from parameter problems
Author: Pheripheral Pheripheral
Posted: 2018-09-04 11:16



Zenoss 4.2.5 Core


I've been experimenting with links to zenoss from external applications and noticed that for some zenoss urls the came_from parameter that is appended to the login form presented to users to login, does not work correctly once they've logged in.


For example, if a link to :




is used and the user is not currently logged in, the login form is presented with the URL:




which is all good, but once the user logs in, the page that it then goes to is the default infrastructure page rather than the events grid for the Systems.MySystem part of the tree.


I.e. http://zenoss:8080/zport/dmd/itinfrastructure?submitted=true#devices:.zport.dmd.Devices


The same is true for other pages that use the # notation to direct the page to a specific area of the page, e.g. on the reports page.


Anyone any idea why this occurs or how to fix it?

I'm guessing either the code that deals with the login and process the came_from parameter is stripping off the #section or that the infrastructure page is not using the # section passed to it.

If the user is already logged in then it works as intended and goes straight to the mysystem's events_grid.



Subject: RE: Login page came_from parameter problems
Author: Pheripheral Pheripheral
Posted: 2018-09-04 12:32


I've continued fiddling and found that if i pass the url for the login button and pass the username and pasword on the url along wht the came_from zenoss will log the user in and end up on the right bit of the infrastructure page:

like this:

Hopefully this will provide the solution i'm after.

So discount my previous question...


< Previous
Graphs not working on Zenoss 6
Problem while executing plugin zenoss.winrm.Software