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

Hi,

 

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 :

 

http://zenoss:8080/zport/dmd/itinfrastructure#systemsTree:.zport.dmd.Systems.MySystem:events_grid 

 

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

 

http://zenoss:8080/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//zenoss%3A8080/zport/dmd/itinfrastructure#systemsTree:.zport.dmd.Systems.MySystem:events_grid

 

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.

 

Thanks



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

UPDATE

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:
http://zenoss:8080/zport/acl_users/cookieAuthHelper/login?submitted=true&__ac_name=user101&__ac_password=password101&came_from=http%3A//zenoss%3A8080/zport/dmd/itinfrastructure#systemsTree:.zport.dmd.Systems.MySystem:events_grid


Hopefully this will provide the solution i'm after.

So discount my previous question...

Cheers


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