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

500 error if add token with same name as existing #135

Closed
tomneedham opened this issue May 8, 2018 · 8 comments
Closed

500 error if add token with same name as existing #135

tomneedham opened this issue May 8, 2018 · 8 comments
Assignees
Labels

Comments

@tomneedham
Copy link
Member

tomneedham commented May 8, 2018

  • enable app
  • go to admin settings
  • enter new registered client with name iOS and any redirection URL
  • click add
  • 500 error 💥
@individual-it
Copy link
Member

what should happen? I guess some proper error message?

@patrickjahns
Copy link
Contributor

patrickjahns commented May 14, 2018

Expected behavior needs to be defined - does the RFC for oauth mention anywhere that the name needs to be unique? Otherwise it's a bug and the 500 should not appear

@SamuAlfageme @DeepDiver1975

@individual-it
Copy link
Member

the RFC says:

   When registering a client, the client developer SHALL:

   o  specify the client type as described in Section 2.1,

   o  provide its client redirection URIs as described in Section 3.1.2,
      and

   o  include any other information required by the authorization server
      (e.g., application name, website, description, logo image, the
      acceptance of legal terms).

I think the uniqueness of the name is up to owncloud requirements

@individual-it
Copy link
Member

  • create acceptance tests for that issues

@DeepDiver1975
Copy link
Member

the name of the client is out of scope of the specs. uniqueness is part of ux from my pov.

Why would you want to add 10 clients with the name 'iOS' ? How to know which one is which?
One wants to remove a specific e.g. client version. so better name them properly 'iOS 1.1.0' 'iOS 1.2.3' .......

@DeepDiver1975
Copy link
Member

in terms of UX: there shall be no http status code 500 ;-)

@tomneedham
Copy link
Member Author

in terms of UX: there shall be no http status code 500 ;-)

I can interpret this as: I should catch the unqiueConstraintViolation, and return some 4xx error and make it look pretty :)

@VicDeo
Copy link
Member

VicDeo commented Dec 2, 2019

Fixed by #237

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

5 participants