Closed davidak closed 8 years ago
Unable to reproduce on oC 8.2.1
I can't reproduce this with stable8.1 nor with tag v8.1.1
Can you check the returned response in the web dev tools in the network tab?
@MorrisJobke now it works with username "test@test.de", but the one i originally wanted to create still leads to this error.
i tested it with that e-mail in the official demo and there is also the error.
this email is for testing only: tester@noz.de
i also tested in Firefox 42 (OS X 10.9.5) and got also this error (in demo).
so this is an actual bug.
Is it a user that you just deleted and tried to recreate ? Because as long as the "Undo" banner is there, the user is not really deleted. See https://github.com/owncloud/core/issues/13589
Is there a matching entry in owncloud.log that might show more clues ?
i tried multiple times to create the user but it never worked. every time this error, also the first time.
i looked at the log with tailf
and get no new entries.
Since you're still on 8.1.1 I'd recommend at least to try the latest from 8.1.x which is 8.1.4.
So far there isn't enough information to be able to reproduce or debug this.
@PVince81 as i mentioned in my comment above, it also happens in the official demo with version 8.2.0!
just try it yourself: https://demo.owncloud.org/index.php/settings/users
what information can i give you?
I saw "can't reproduce it in your public demo with oC 8.2.0" in the first post, maybe a typo. Let me have a try.
It works fine on the demo...
Maybe before creating the user, check "oc_users" to see if the user already exists, just in case ?
Looking at the code, Forbidden can be thrown in the following cases on 8.2.0:
From what I see, the database (default) implementation of UserManager can only throw an exception if there is an error doing the INSERT, maybe a duplicate ? Or if the password hasher throws. https://github.com/owncloud/core/blob/v8.2.0/lib/private/user/database.php#L66
@davidak you could add some logging statement here https://github.com/owncloud/core/blob/v8.2.0/settings/controller/userscontroller.php#L376 and here https://github.com/owncloud/core/blob/v8.2.0/settings/controller/userscontroller.php#L316 (log the exception) to find out the cause.
i checked the table oc_users
in the database and it is definitely not there.
inserted this to my 8.1.1:
} catch (\Exception $exception) {
error_log($exception, 0);
return new DataResponse(
get error message:
PHP message: exception 'Exception' with message 'Folgende Zeichen sind im Benutzernamen erlaubt: \xe2\x80\x9ea-z\xe2\x80\x9c, \xe2\x80\x9eA-Z\xe2\x80\x9c, \xe2\x80\x9e0-9\xe2\x80\x9c und \xe2\x80\x9e_.@-\xe2\x80\x9c'
Hmm, "@" and "." are allowed. Can you log the user name too to see if it arrived properly ?
error_log( "usr:" . $username . " pw:" . $password);
PHP message: usr:tester@noz.de\xe2\x80\x8b pw:1234
PHP message: usr:tester@noz.de\xe2\x80\x8bd pw:1234
PHP message: usr:tester@noz.de\xe2\x80\x8b pw:123456
name of that Unicode Character: ZERO WIDTH SPACE
so, where does the characters after the username come from? and why only with this name?
answer: copy and paste error. i copied the inital mail adress with that character (don't know why) and it was still there after clearing the input field and change the name to "tester". when i reload the page and type it by hand, it works ;)
to prevent this error, there should at lease be a log entry and better a meaningful error message to the user.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Steps to reproduce
other user names worked, also with this syntax.
can't reproduce it in your public demo with oC 8.2.0
Expected behaviour
the user should get created :)
Actual behaviour
Get error message:
Operating system: Ubuntu 12.04.5 LTS
Web server: Apache 2.2
Database: mysql Ver 14.14 Distrib 5.5.44
PHP version: 5.6.15
ownCloud version: 8.1.1
Updated from an older ownCloud or fresh install: fresh install
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Chromium Version 46.0.2490.71 (64-bit)
Operating system: OS X 10.9.5
Logs
Web server error log
ownCloud log (data/owncloud.log)
Browser log