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

Users with umlaute like ü cannot be added manually #24512

Closed
JKawohl opened this issue May 9, 2016 · 4 comments · Fixed by #24526
Closed

Users with umlaute like ü cannot be added manually #24512

JKawohl opened this issue May 9, 2016 · 4 comments · Fixed by #24526

Comments

@JKawohl
Copy link
Contributor

JKawohl commented May 9, 2016

Steps to reproduce

1.login as admin
2. add user "Michael Müller"
3.

Expected behaviour

Michael Müller is happily added to owncloud

Actual behaviour

Screen prompt: Error creating user: Benutzer konnte nicht erstellt werden.

Server configuration

Operating system:
ubuntu 14.04
Web server:
apache
Database:
mysql Ver 14.14 Distrib 5.5.49
PHP version:
php 5.5.9
ownCloud version: (see ownCloud admin page)
9.0.2 stable
Updated from an older ownCloud or fresh install:
fresh
Where did you install ownCloud from:
packages
Signing status (ownCloud 9.0 and above):

No errors have been found.```

**List of activated apps:**

Enabled:

  • activity: 2.2.1
  • admin_audit: 0.7
  • comments: 0.2
  • dav: 0.1.6
  • enterprise_key: 0.1.0
  • federatedfilesharing: 0.1.0
  • federation: 0.0.4
  • files: 1.4.4
  • files_drop: 0.4.1
  • files_external: 0.5.2
  • files_pdfviewer: 0.8.1
  • files_sharing: 0.9.1
  • files_texteditor: 2.1
  • files_trashbin: 0.8.0
  • files_versions: 1.2.0
  • files_videoplayer: 0.9.8
  • firewall: 2.3.0
  • firstrunwizard: 1.1
  • gallery: 14.5.0
  • notifications: 0.2.3
  • provisioning_api: 0.4.1
  • systemtags: 0.2
  • templateeditor: 0.1
  • updatenotification: 0.1.0
  • windows_network_drive: 0.2.33
  • workflow: 0.1.3

The content of config/config.php:


{
    "system": {
        "updatechecker": false,
        "supportedDatabases": [
            "mysql",
            "pgsql",
            "oci"
        ],

        "memcache.local": "\\OC\\Memcache\\APCu",
        "DISABLED.memcache.locking": "\\OC\\Memcache\\Redis",
        "DISABLED.memcache.distributed": "\\OC\\Memcache\\Redis",
        "Redis": {
            "host": "\/var\/run\/redis\/redis.sock",
            "port": 0,
            "timeout": 0
        },
        "instanceid": "oc2fr2dacmsb",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/var\/lib\/owncloud",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "9.0.2.2",
        "dbname": "oc",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true
    }
}

Are you using encryption:
no

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

Client configuration

Browser:
Chrome Version 50.0.2661.94 (64-bit)

Operating system:
OSX

Logs

Web server error log

192.168.99.1 - - [09/May/2016:12:47:15 +0000] "GET /settings/users/users?offset=0&limit=250&gid=&pattern= HTTP/1.1" 200 2103 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36"
::1 - - [09/May/2016:12:47:22 +0000] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.16 OpenSSL/1.0.1f (internal dummy connection)"
192.168.99.1 - - [09/May/2016:12:47:25 +0000] "POST /settings/users/users HTTP/1.1" 403 1037 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36"
192.168.99.1 - - [09/May/2016:12:47:29 +0000] "POST /settings/users/users HTTP/1.1" 403 899 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36"```

#### ownCloud log (data/owncloud.log)

{"reqId":"lyRcCYWCDQ5Bl379Xr9O","remoteAddr":"","app":"no app in context","message":"Exception: {"Exception":"DomainException","Message":"Contacts tables are missing. Nothing to do.","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/dav\/lib\/migration\/migrateaddressbooks.php(83): OCA\Dav\Migration\AddressBookAdapter->setup()\n#1 \/var\/www\/owncloud\/apps\/dav\/appinfo\/application.php(186): OCA\Dav\Migration\MigrateAddressbooks->setup()\n#2 \/var\/www\/owncloud\/apps\/dav\/appinfo\/install.php(26): OCA\Dav\AppInfo\Application->migrateAddressbooks()\n#3 \/var\/www\/owncloud\/lib\/private\/installer.php(640): include('\/var\/www\/ownclo...')\n#4 \/var\/www\/owncloud\/lib\/private\/installer.php(591): OC_Installer::includeAppScript('\/var\/www\/ownclo...')\n#5 \/var\/www\/owncloud\/lib\/private\/installer.php(562): OC_Installer::installShippedApp('dav')\n#6 \/var\/www\/owncloud\/lib\/private\/setup.php(370): OC_Installer::installShippedApps()\n#7 \/var\/www\/owncloud\/core\/command\/maintenance\/install.php(84): OC\Setup->install(Array)\n#8 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Command\/Command.php(259): OC\Core\Command\Maintenance\Install->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#9 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(840): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#10 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Maintenance\Install), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#11 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#12 \/var\/www\/owncloud\/lib\/private\/console\/application.php(145): Symfony\Component\Console\Application->run(NULL, NULL)\n#13 \/var\/www\/owncloud\/console.php(84): OC\Console\Application->run()\n#14 \/var\/www\/owncloud\/occ(11): require_once('\/var\/www\/ownclo...')\n#15 {main}","File":"\/var\/www\/owncloud\/apps\/dav\/lib\/migration\/addressbookadapter.php","Line":72}","level":3,"time":"2016-05-09T12:06:18+00:00","method":"--","url":"--","user":"--"}
{"reqId":"lyRcCYWCDQ5Bl379Xr9O","remoteAddr":"","app":"no app in context","message":"Exception: {"Exception":"DomainException","Message":"Calendar tables are missing. Nothing to do.","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/dav\/lib\/migration\/migratecalendars.php(84): OCA\Dav\Migration\CalendarAdapter->setup()\n#1 \/var\/www\/owncloud\/apps\/dav\/appinfo\/application.php(202): OCA\Dav\Migration\MigrateCalendars->setup()\n#2 \/var\/www\/owncloud\/apps\/dav\/appinfo\/install.php(27): OCA\Dav\AppInfo\Application->migrateCalendars()\n#3 \/var\/www\/owncloud\/lib\/private\/installer.php(640): include('\/var\/www\/ownclo...')\n#4 \/var\/www\/owncloud\/lib\/private\/installer.php(591): OC_Installer::includeAppScript('\/var\/www\/ownclo...')\n#5 \/var\/www\/owncloud\/lib\/private\/installer.php(562): OC_Installer::installShippedApp('dav')\n#6 \/var\/www\/owncloud\/lib\/private\/setup.php(370): OC_Installer::installShippedApps()\n#7 \/var\/www\/owncloud\/core\/command\/maintenance\/install.php(84): OC\Setup->install(Array)\n#8 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Command\/Command.php(259): OC\Core\Command\Maintenance\Install->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#9 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(840): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#10 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Maintenance\Install), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#11 \/var\/www\/owncloud\/3rdparty\/symfony\/console\/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#12 \/var\/www\/owncloud\/lib\/private\/console\/application.php(145): Symfony\Component\Console\Application->run(NULL, NULL)\n#13 \/var\/www\/owncloud\/console.php(84): OC\Console\Application->run()\n#14 \/var\/www\/owncloud\/occ(11): require_once('\/var\/www\/ownclo...')\n#15 {main}","File":"\/var\/www\/owncloud\/apps\/dav\/lib\/migration\/calendaradapter.php","Line":68}","level":3,"time":"2016-05-09T12:06:18+00:00","method":"--","url":"--","user":"--"}


#### Browser log

jquery.min.js?v=b573819…:6 POST https://192.168.99.100/settings/users/users 403 (Forbidden)send @ jquery.min.js?v=b573819…:6x.extend.ajax @ jquery.min.js?v=b573819…:6x.(anonymous function) @ jquery.min.js?v=b573819…:6(anonymous function) @ users.js?v=b573819…:800(anonymous function) @ jquery.min.js?v=b573819…:4c @ jquery.min.js?v=b573819…:4p.add @ jquery.min.js?v=b573819…:4(anonymous function) @ jquery.min.js?v=b573819…:4x.extend.each @ jquery.min.js?v=b573819…:4(anonymous function) @ jquery.min.js?v=b573819…:4x.extend.Deferred @ jquery.min.js?v=b573819…:4r.then @ jquery.min.js?v=b573819…:4(anonymous function) @ users.js?v=b573819…:798x.event.dispatch @ jquery.min.js?v=b573819…:5v.handle @ jquery.min.js?v=b573819…:5

@nickvergessen
Copy link
Contributor

https://github.com/owncloud/core/blob/master/lib/private/user/manager.php#L267-L271

Only the following characters are allowed in a username: "a-z", "A-Z", "0-9", and "_.@-'"

Not sure where this gets killed, since it's really important information, but it will not work in the end anyway.

@DeepDiver1975
Copy link
Member

We did discuss this already in #24359 - this will break badly.

Please note that the user name is more a technical identifier of a user - keep it as simple as possible.
Any fancy name can be use in the displayname. THX

@nickvergessen
Copy link
Contributor

Ill reopen this, to check why the character error message is not displayed in the ui

@lock
Copy link

lock bot commented Aug 4, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants