I'll look at this a bit more tomorrow, but I have looked at these files. What is surprising is how commenting out the code in administrative.js doesn't change the behavior at all.
-----Original Message----- From: Brian Freels-Stendel [mailto:[email protected]] Sent: Monday, April 16, 2012 3:47 PM To: Blanco, Jose Cc: [email protected] Subject: Re: [Dspace-tech] "login as" not quite working. Hi Jose, It looks like two more files might be relevant: \dspace-xmlui\dspace-xmlui-api\src\main\java\org\dspace\app\xmlui\utils\AuthenticationUtil.java (loginAs) \dspace-xmlui\dspace-xmlui-api\src\main\java\org\dspace\app\xmlui\aspect\administrative\FlowEPersonUtils.java (processLoginAs) My suspicion is that there's a bad interaction going on between the requests. If you look at the address bar, when the "page not found" is served, there's an "/admin" in the mix. I think the admin account's request is from an admin page; but logging in as another user tries to shunt you to either the home page or that user's page, neither of which are under the admin directory. B-- >>> On 4/16/2012 at 1:17 PM, in message <24384f6f63a19146a9b29eb6592faf3e305ea...@its-embx-01.adsroot.itcs.umich.edu>, "Blanco, Jose" <[email protected]> wrote: > This is in xmlui. > > From: Fábio Haertel Kochhann [mailto:[email protected]] > Sent: Monday, April 16, 2012 3:16 PM > To: Blanco, Jose > Cc: [email protected] > Subject: Re: [Dspace-tech] "login as" not quite working. > > did you check dspace logs? > > /dspace/log/<something.log> > > I had the "page not found" problem when there was an error is my custom jsp > syntax, which I was able to see after checking the log file On Mon, > Apr 16, 2012 at 1:51 PM, Blanco, Jose > <[email protected]<mailto:[email protected]>> wrote: > When as an admin I try to login as another user I successfully login but I > get a Page not found on the browser. In order to debug this I've been trying > to find where this happens and have not been successful. The last thing I > tried was to comment out this code in administrative.js file and nothing has > changed. I can still login and get the Page not found display. I was > expecting this not to work, should I be looking somewhere else. I also > cleared the cache using the UI, and cleared the browser history. Here is the > code I commented out: > > else if (cocoon.request.get("submit_login_as")) > { > // Login as this user. > //assertAdministrator(); > //result = > FlowEPersonUtils.processLoginAs(getDSContext(),getObjectModel(),epersonID); > > // if (result != null && > result.getOutcome().equals("success")) > // { > // // the user is loged in as another user, we can't let > them continue on > // // using this flow because they might not have > permissions. So forward > // // them to the homepage. > // > cocoon.redirectTo(cocoon.request.getContextPath(),true); > // getDSContext().complete(); > // cocoon.exit(); > //} > } > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > DSpace-tech mailing list > [email protected]<mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > > > -- > ----Fábio Haertel Kochhann ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

