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

Error 403 + HTML response from API when trying to create new user #4878

Closed
leonklingele opened this issue May 15, 2017 · 2 comments
Closed

Comments

@leonklingele
Copy link
Member

Steps to reproduce:

  1. Open /settings/users in your browser
  2. Create a new user test with password test
  3. Receive 403 response from the /settings/users/users API endpoint which returns some HTML:
..
	<li class='error'>
		Zugriff verboten<br>
		<p class='hint'></p>
	</li>
..

Affected version: Nextcloud version 11.0.3 (stable)

I already showed this to @schiessle but we were not able to reproduce this on his machine.
We boiled down the issue to the 'Password rules' options in the admin settings. The issue does not occur when the new user's password fulfills all requirements specified there.

Initially reported by @vaneslie

@rullzer
Copy link
Member

rullzer commented May 15, 2017

Are you running nginx by any chance?
Remove the error_page lines from your config.

@leonklingele
Copy link
Member Author

@rullzer thanks, that fixed the issue. Now the API is properly returning JSON.
The error_page directives were recommended for Nextcloud 10.

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