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

bugfixes: user account update, create user #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tuurma
Copy link
Contributor

@tuurma tuurma commented Oct 2, 2019

@tuurma tuurma requested a review from wolfgangmm October 2, 2019 12:06
@adamretter
Copy link
Contributor

@tuurma I took a look over your PR, thanks for that :-)

It looks good, but as far as I can see, it doesn't solve eXist-db/dashboard#93 as claimed. Thoughts?

@@ -167,7 +167,7 @@ declare function usermanager:update-user($user-name as xs:string, $user-json as
else(),

(: if a password is provided, we always change the password, as we dont know what the original password was :)
for $group in secman:get-user-groups($user) return secman:remove-group-member($group, $user),
for $group in secman:get-user-groups($user)[. != sm:get-user-primary-group($user)] return secman:remove-group-member($group, $user),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be best to stick with the unusual secman prefix defined in the prolog, or otherwise switch the whole module to the standard sm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it does get on my nerves and, as demonstrated, is easy to make a silly mistake

@joewiz
Copy link
Member

joewiz commented Oct 2, 2019

On Monday's Community Call @duncdrum suggested that fixing this issue would be a good opportunity to review #25 (a PR which moves the Cypress integration tests into this repository), update it to reflect the recent changes to the login behavior, and to add a test showing that the fix to this issue has the expected results.

@tuurma
Copy link
Contributor Author

tuurma commented Oct 4, 2019

@adamretter correct, didn't read the eXist-db/dashboard#93 title properly: there were two parts to that issue

  • updating the user in any way was failing (now fixed)
  • resulting 500 error (now replaced with a similar problem with a login redirect)

currently working on proper fix for the second part

@tuurma
Copy link
Contributor Author

tuurma commented Oct 4, 2019

@joewiz Thanks, I do realise that it would be ideal to add relevant tests asap

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

Successfully merging this pull request may close these issues.

3 participants