-
Notifications
You must be signed in to change notification settings - Fork 189
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
Stuck on "Redirecting" when using an email address as the username #2435
Comments
The problem seems to be in https://github.com/owncloud/ocis/blob/v1.11.0/ocs/pkg/middleware/requireselforadmin.go#L46 This seems to be an issue in go-chi (go-chi/chi#642). Taking this into account and that there are multiple places where we're using this |
@mdusher this was fixed in cs3org/reva#2076. Could you please try again with at least oCIS 1.12.0? |
Please reopen if you still have problems with it. |
Hi @wkloucek, I just gave it a go using the What I did to test:
|
Thanks for reproducing. Sorry there was some confusion on my side. It is not fixed in oCIS 1.12.0 but will be in the upcoming oCIS 1.13.0 since cs3org/reva#2076 was merged after the release of oCIS 1.12.0. It is already working on latest master. Logging in with We expect oCIS 1.13.0 to be released by the end of the week. |
Describe the bug
When you add a user that has an email address as the "preferred name", you will become stuck on the "Redirecting" page after login as the request to
/ocs/v1.php/v1.php/cloud/users/<username>/groups
fails with a 401 Unauthorized.It appears that the request fails due to the
@
in the username being URL encoded as%40
as if you replace the%40
with@
and re-run the request it succeeds as expected.Steps to reproduce
Steps to reproduce the behavior:
ocis server
ocis accounts add --username michael@example.org --password test123 --preferred-name michael@example.org --mail michael@example.org --displayname Michael --enabled
)michael@example.org
with the passwordtest123
Expected behavior
The user is able to login and use OCIS
Actual behavior
The user is able to login but becomes stuck on the "Redirecting" page.
Setup
Started with:
OCIS Version:
The text was updated successfully, but these errors were encountered: