From: Joe W. <jo...@gm...> - 2016-08-18 18:31:48
|
I've filed an issue describing this problem at https://github.com/eXist-db/dashboard/issues/44. On Thu, Aug 18, 2016 at 1:22 PM, Joe Wicentowski <jo...@gm...> wrote: > Changing `$login` to `login:set-user` on line 188 of > /db/apps/dashboard/plugins/userManager/controller.xql solves the > problem. But this bypasses the login-helper, which checks for the > presence of the persistent login module. I have no idea why the > original code doesn't work. > > On Thu, Aug 18, 2016 at 1:51 AM, <ai...@un...> wrote: >> I can add, that the error exists since several months. >> I think it goes back in the time of my issue #875. >> >> the user manager and the collection browser are affected. >> It seems that both assume 'guest' despite being logged in as admin. >> >> the collection browser denies creating and deleting of resources >> (collections, files) with the same error as reported by Alister (the >> open/save dialog of eXide allows it). >> >> regards >> >> Peter >> >> Quoting Joe Wicentowski <jo...@gm...>: >> >>> I'm seeing Alister's problem too, but I have some new info. With a >>> fresh installation of the latest nightly and an empty db aside from >>> the default apps, here are the steps to reproduce: >>> >>> 1. Start eXist. >>> 2. Go to Dashboard > User Manager. When prompted to login, login as >>> "admin" but do not select "remember me." >>> 3. The table of users and groups displays as expected. Close User Manager. >>> 4. Select the "admin" link > Logout. >>> 5. Go to Dashboard > User Manager. This time, *do* select "remember me". >>> 6. The table of users and groups does *not* display; instead, "Sorry, >>> an error occurred" appears. >>> >>> So there seems to be a regression with the persistent login function, >>> at least as Dashboard implements it. >>> >>> Joe >>> >>> On Sat, May 7, 2016 at 8:14 AM, Alister Pillow <gsp...@gm...> wrote: >>>> And a merry good afternoon to you all. >>>> >>>> I'm trying to get my demo server running but having problems with >>>> authentication. >>>> >>>> git clone https://github.com/eXist-db/exist.git existb-2016-05-07 >>>> cd existb-2016-05-07 >>>> ./build.sh >>>> (using 1.8.0_60 [Oracle Corporation (Java HotSpot(TM) Client VM) in >>>> /opt/jdk1.8.0_60/jre] ) >>>> >>>> bin/startup.sh >>>> Login to Dashboard with "admin" no password. >>>> User Manager2 - set password for admin >>>> Shutdown >>>> >>>> bin/startup.sh >>>> login to Dashboard as admin with new password. (Set "Remember me") >>>> Open User Manager2 >>>> "Sorry, an error occurred" >>>> >>>> Log says >>>> >>>> 2016-05-07 11:51:18,813 [main] INFO (JettyStart.java [run]:237) - >>>> Server has started on ports 8080 8443. Configured contexts: >>>> 2016-05-07 11:51:18,813 [main] INFO (JettyStart.java [run]:246) - '/exist' >>>> 2016-05-07 11:51:18,814 [main] INFO (JettyStart.java [run]:284) - >>>> ----------------------------------------------------- >>>> 2016-05-07 11:53:45,969 [eXistThread-26] INFO (Descriptor.java >>>> [<init>]:104) - Reading Descriptor from file >>>> /usr/local/exist/existb-2016-05-07/bin/../descriptor.xml >>>> 2016-05-07 11:53:47,029 [eXistThread-26] INFO (MimeTable.java >>>> [load]:244) - Loading mime table from file >>>> /usr/local/exist/existb-2016-05-07/bin/../mime-types.xml >>>> 2016-05-07 11:53:47,045 [eXistThread-26] INFO >>>> (TemporaryFileManager.java [<init>]:81) - Temporary folder is: >>>> /usr/local/exist/existb-2016-05-07/bin/../tools/jetty/tmp/_mmtfm_4200fd85-2ff8-4341-8e86-1a2d40abaef51170159375101966329 >>>> 2016-05-07 11:54:11,710 [eXistThread-29] WARN (ServletHandler.java >>>> [doHandle]:538) - >>>> javax.servlet.ServletException: An error occurred while processing >>>> request to /exist/apps/dashboard/plugins/userManager/api/user/: >>>> exerr:ERROR You must be an authenticated user [at line 69, column >>>> 38, source: /db/apps/dashboard/plugins/userManager/userManager.xqm] >>>> In function: >>>> usermanager:get-user(item()*) >>>> [44:17:/db/apps/dashboard/plugins/userManager/userManager.xqm] >>>> usermanager:list-users() >>>> [70:5:/db/apps/dashboard/plugins/userManager/userManager.xqm] >>>> local:list-users(xs:string?) >>>> [195:70:/db/apps/dashboard/plugins/userManager/controller.xql] >>>> at >>>> org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:381) >>>> ~[exist-optional.jar:?] >>>> at >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> ~[servlet-api-3.0.jar:?] >>>> >>>> >>>> Prior to running this simple test I had tried (about 5 times) >>>> restoring from a backup into a fresh install - always meeting this >>>> error. >>>> I first tried this on April 17. >>>> >>>> Not sure where to look now. >>>> >>>> Has anyone experienced this with recent builds? >>>> >>>> >>>> Thanks, >>>> Alister. >>>> ------------------------------------------------------------------------------ >>>> Find and fix application performance issues faster with Applications Manager >>>> Applications Manager provides deep performance insights into >>>> multiple tiers of >>>> your business applications. It resolves application problems quickly and >>>> reduces your MTTR. Get your free trial! >>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>>> _______________________________________________ >>>> Exist-open mailing list >>>> Exi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >> >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open |