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

Problems with "digital" usernames #11197

Closed
olegbolden opened this issue Sep 12, 2018 · 7 comments
Closed

Problems with "digital" usernames #11197

olegbolden opened this issue Sep 12, 2018 · 7 comments
Labels

Comments

@olegbolden
Copy link

  1. Create user with any digital username, for example 5555

Expected behaviour

A user with digital username should be added

Actual behaviour

On submit you will get error (bad request) and all users became inaccessible from USERS menu item ("no users in here")
As a consequence, on sharing any file or folder you will see two instances of the same user with "digital" username - with email address and without it.

problem

Users with regular usernames have the only instance to select from dropdown list upon object sharing.

Server configuration

Operating system:
Linux Debian Jessie

Web server:
Nginx+PHP-FPM and Apache+CGI

Database:
MySQL

PHP version:
7.0.25 and 7.1.20

Nextcloud version: (see Nextcloud admin page)
14.0

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 13.6

The problem with users disappearing can be solved by removing hinting from getUserData method signature in abstract class /apps/provisioning_api/lib/Controller/AUserData.php:

81 protected function getUserData(string $userId): array {
change to
81 protected function getUserData($userId): array {

The problem with duplicating of the same user with "digital" username when sharing objects is to be solved as yet.

@kesselb
Copy link
Contributor

kesselb commented Sep 12, 2018

Looks similiar to #11178. Does #11181 fix your issue as well?

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #9152 (Problem renaming folders), #4908 (Problem upgrading NextCloud), #9356 (problem with updater ), #9612 (A home for your digital identity), and #5810 (Problems with external ftp).

@olegbolden
Copy link
Author

Looks similiar to #11178. Does #11181 fix your issue as well?

Oh, yeah.
It fixes my issue though duplication of username in dropdown selector remains.
This duplication is another bug and may be it is related to "digital" usernames.

@olegbolden
Copy link
Author

Looks similiar to #11178. Does #11181 fix your issue as well?

@danielkesselberg,
After applying your patch I tried today adding new users with numerical usernames.
Users are added with error "Bad request", but in most cases after the page refreshing I can see them among other users.
Then I deleted one user (say 5555) and tried to add user with the same username again. I got the same "Bad request" error but after refreshing I can not see it. I can not create this user anymore. It seems as if system remembers deleted user and prevents creating it again.

@olegbolden
Copy link
Author

An update
Everything what I've described above is happened in Mozilla Firefox.
Now I'm testing in Chromium and everything works fine!
Apparently, FF caching or somewhat else messes things up.

@kesselb
Copy link
Contributor

kesselb commented Sep 17, 2018

Could you close this issue then?

@olegbolden
Copy link
Author

Yes, I will.
Though duplicating of one account on selecting users as depicted above still persists.
I'll create another issue to point this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants