Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the admin password in the User Manager throws an exception #107

Open
MikeJ1971 opened this issue Sep 25, 2019 · 1 comment
Open
Assignees
Labels

Comments

@MikeJ1971
Copy link

MikeJ1971 commented Sep 25, 2019

What is the problem

When attempting to change the password of the admin in the User Manager (via the Dashboard) the web interface returns with "Server responded: 500 Server Error".

In the logs the following stack trace is given:

Caused by: org.exist.security.PermissionDeniedException: You cannot remove the primary group of an account.
	at org.exist.security.AbstractAccount.remGroup(AbstractAccount.java:157) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.functions.securitymanager.GroupMembershipFunction.removeGroupMembers(GroupMembershipFunction.java:274) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.functions.securitymanager.GroupMembershipFunction.eval(GroupMembershipFunction.java:198) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.BasicFunction.eval(BasicFunction.java:74) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:65) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.ForExpr.processItem(ForExpr.java:251) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.ForExpr.eval(ForExpr.java:189) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.PathExpr.eval(PathExpr.java:276) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:81) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
	at org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist-core-5.0.0.jar:5.0.0]
...

It is possible to change the password via the sm:passwd function.

What did you expect

I'd expect the password to be changed without an exception being thrown.

Describe how to reproduce or add a test

Try changing the admin password via the web-based user manager.

Context information

Please always add the following information

  • eXist-db version 5.0.0
  • Java version 10.0.1
  • MacOs
  • 64 bit:
  • JAR installer and Puppet module
@duncdrum duncdrum transferred this issue from eXist-db/exist Sep 25, 2019
@joewiz joewiz added the bug label Sep 26, 2019
@tuurma
Copy link

tuurma commented Oct 2, 2019

same as #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants