On 03/11/2014 16:16, Manfredo Hopp wrote:
Francesco thanks for your reply, in regards with the authorization problem my solution was to restart Linux (restarting tomcat did not work), so my guess is there could be a concurrence problem as I may have edited some properties file of the target webapp during restarts. This is what I found googling:

http://santoshgadkari.blogspot.com.ar/2010/02/we-use-heavily-xml-related-apis.html

Thanks for input: I've now optimized the authorizations.xml as part of SYNCOPE-599 [5] - which will be part of upcoming release 1.2.1.

Regards.

2014-11-01 4:50 GMT-03:00 Francesco Chicchiriccò <[email protected] <mailto:[email protected]>>:

    On 31/10/2014 18:18, Manfredo Hopp wrote:

        After start/stopping several times  a recently installed
        tomcat7 with syncope  the user admin  disappeared. When I
        enter with this user/password the menu entries are disabled as
        if I entered with a normal user.


    This is a consequence of the problem you've reported in another
    e-mail thread [1] (authorization.xml exception during parsing),
    and I've heard about something similar recently from someone else:
    I can't recognize anything significant from the posted stacktrace
    but if you find any reproducible way to generate such problem
    please open an issue on JIRA [2].

    AFAICT the problem is only console-side, so all REST services
    should work fine; anyway it seems that restarting Tomcat again
    should make the problem to disappear.

        I tried to find the table where admin shoud be in embedded
        mode but could not find syncopedb table since Run syncope in
        embedded mode  document pointing to
        url:localhost:9080/syncope/db.jsp has no result on browser (in
        projects directory I can find  db.jsp under
        core/target/syncope-core-test).

        Also on that doc I found that external databse result testdb
        points to jdbc:h2:tcp://localhost:9092/testdb which doesnt
        bring any result, but instead
        jdbc:h2:tcp://localhost:9092/mem:testdb does.


    When Tomcat completes its startup with no errors - assuming you
    are in embedded mode or using the standalone distribution, of
    course - all expected components are available [3]; however, you
    need to restart for the reason reported above.

        1. where is admin user defined?


    The admin user is not a regular used (alongside with anonymous
    user): they are both system users not found in the internal storage.
    When creating a new project from archetype you are asked for a
    secretKey and an anonymousKey: the former is used to encrypt admin
    password, the latter for accessing as anonymous.
    You can naturally change default admin credentials: [4].

        2. how can I access syncope db in embedded mode?


    As said above, accessing http://localhost:9080/syncope/db.jsp
    should work - if it does not, you're hitting a bug, or at least
    the consequence of another problem (as I suppose, here's why I'm
    suggesting to try to restart until you get no more exceptions
    during startup).

        3. Why did user admin disappear?


    As explained, it's not disappearing: the problem is that the admin
    console is not able to recognize its authorizations.

    It seems that the problem you are getting is definetly worth some
    more investigation: should you find something more, please report.

    Regards.

    [1] http://markmail.org/message/t3obc75zec5h72mk
    [2] https://issues.apache.org/jira/browse/SYNCOPE
    [3]
    
https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+embedded+mode#RunSyncopeinembeddedmode-Syncopecore
    [4]
    
https://cwiki.apache.org/confluence/display/SYNCOPE/Set+administrator+credentials

[5] https://issues.apache.org/jira/browse/SYNCOPE-599

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/

Reply via email to