[ownCloud 10.0.5] Can't create user with HTTP 403 Error

reported_app_bug
webserver_issue
10

#1
  1. Administrator Login
  2. Access: https://domain.local:non-443-port/settings/users
  3. Can't add user, tips: POST https://domain.local:non-443-port/settings/users/users 403 ()

Expected behaviour

Can't create user with Username "test", Password "p@ssw0rd", group "none" or "admin".

Actual behaviour

I try to fill email address at username, the user was be created. like i@i, me@what and which@ (seem just need include "@").

Server configuration

Operating system: Raspberry 3B with Debian [Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux]

Web server: Chrome Stable x64 Version 64.x

Database: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0

PHP version: PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) ( NTS )

ownCloud version: ownCloud 10.0.5

Updated from an older ownCloud or fresh install: No, fresh install.

Where did you install ownCloud from: Official Site

Signing status (ownCloud 9.0 and above): Sorry, I don't know about it.

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 

No errors have been found.

The content of config/config.php: Haven't modified.

List of activated apps: Null

Are you using external storage, if yes which one: No, /opt/data/ocdata/

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Logs

Web server error log

Just return 403, no error.

ownCloud log (data/owncloud.log)

{"reqId":"cP2dP94r1OMH2WGIJtrT","level":3,"time":"2018-01-28T11:36:59+00:00","remoteAddr":"192.168.1.1","user":"Tianhao Wu","app":"index","method":"POST","url":"\/settings\/users\/users","message":"Exception: {\"Exception\":\"TypeError\",\"Message\":\"Argument 3 passed to OC\\\\Settings\\\\Controller\\\\UsersController::create() must be of the type array, string given\",\"Code\":0,\"Trace\":\"#0 [internal function]: OC\\\\Settings\\\\Controller\\\\UsersController->create('wl', 'wl', 'guest', '')\\n#1 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(159): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OC\\\\Settings\\\\Controller\\\\UsersController), 'create')\\n#3 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/private\\\/AppFramework\\\/App.php(98): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Settings\\\\Controller\\\\UsersController), 'create')\\n#4 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('UsersController', 'create', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#5 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#6 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/private\\\/Route\\\/Router.php(342): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#7 \\\/var\\\/www\\\/html\\\/default\\\/lib\\\/base.php(929): OC\\\\Route\\\\Router->match('\\\/settings\\\/users...')\\n#8 \\\/var\\\/www\\\/html\\\/default\\\/index.php(56): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/default\\\/settings\\\/Controller\\\/UsersController.php\",\"Line\":355}"}

Browser log

/settings/users/users 403 ()

#2

Hi,

in 10.0.5 there were a few issues, 10.0.6 is out, can you try upgrading?


#3

Hi I had the same issue and it turned out to be the username that I was using. It seems that you can’t use usernames with 2 characters.