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

When a new self registered user access to a document detailed view, an internal server error is raised #1255

Closed
lauren-d opened this issue Oct 5, 2020 · 1 comment
Assignees
Labels
bug Breaks something but is not blocking f: permissions Concerns the rights management f: public ui Public interface, as opposed to the professional interface p-Low Low priority

Comments

@lauren-d
Copy link
Contributor

lauren-d commented Oct 5, 2020

Describe the bug
In the public view, when a self registered user want access to document details view,
it raises an internal server error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the registration form and create a new account, you will receive a validation email
  2. validate your account by clicking link in the email
  3. Log in with your new account on rero-ils
  4. Do a search and click on a document
  5. See error

Expected behavior
The new logged in user can view the detail of a document.

Context

  • server: all (local, ils.test.rero.ch, ilsdev.test.rero.ch, ...)
  • version: v0.12.0

Screenshots
image

Additional context
When a user registers on the site, its new account is not associated with a Patron resource.
It's only an invenio user.
In the document detail view, there is a method to check if the user can request the document.
To do that, we need the patron resource.

@lauren-d lauren-d added triage bug Breaks something but is not blocking labels Oct 5, 2020
@lauren-d lauren-d self-assigned this Oct 13, 2020
@iGormilhit iGormilhit changed the title When a new self registered user access to document detail view it's raise an internal server error. When a new self registered user access to a document detailed view, an internal server error is raised Nov 3, 2020
@iGormilhit iGormilhit added f: permissions Concerns the rights management f: public ui Public interface, as opposed to the professional interface and removed triage labels Nov 3, 2020
@iGormilhit iGormilhit added the p-Low Low priority label Nov 26, 2020
@lauren-d
Copy link
Contributor Author

lauren-d commented Dec 3, 2020

This issue is resolved with #1263

@lauren-d lauren-d closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking f: permissions Concerns the rights management f: public ui Public interface, as opposed to the professional interface p-Low Low priority
Projects
None yet
Development

No branches or pull requests

2 participants