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

NC12, Adding user not possible #5114

Closed
michaelletzgus opened this issue May 25, 2017 · 2 comments
Closed

NC12, Adding user not possible #5114

michaelletzgus opened this issue May 25, 2017 · 2 comments

Comments

@michaelletzgus
Copy link
Contributor

michaelletzgus commented May 25, 2017

Stable 12.0.0.29 (upgrade from 11.3 via upgrade app), trying to add an user.

  1. js-console:
    TypeError: result.responseJSON is undefined[Weitere Informationen] users.js:1050:7

  2. network-console, xhr request:
    https:///settings/users/users results in 403 forbidden
    HTTP response contains the "Zugriff verboten, CSRF check failed" page

Update: The request header does not contain the nc_samesitecookie options, only the __HOST-prefixed ones. Current master does send the unprefixed nc_samesitecookie options and user adding works.

  1. server error log: nothing

  2. server acces log:
    only https:///settings/users/users

Findings so far:

  • Problem is initially "caused" by by password policy app
  • User can't see this because the error message does never reach the screen
    => Adding users is working correctly
    => password policy app might work correct, too (problem with error messages)
    => Message is not forwarded properly in UsersControler.php, catch, Line 404
@LukasReschke
Copy link
Member

LukasReschke commented May 28, 2017

I guess you use Nginx, please check nextcloud/documentation#392 and make sure to always keep your Nginx config up-to-date or use a Apache, our recommended web server, where we actually can control such things via .htaccess.

@michaelletzgus
Copy link
Contributor Author

Thanks for the hint - this resolves the missing message.
Now I have message like

Fehler beim Anlegen des Benutzers: {message}

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

No branches or pull requests

2 participants