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

Login: Cannot delete orcid user due to new constraint violation. #4356

Closed
kcondon opened this issue Dec 5, 2017 · 0 comments · Fixed by #7629
Closed

Login: Cannot delete orcid user due to new constraint violation. #4356

kcondon opened this issue Dec 5, 2017 · 0 comments · Fixed by #7629

Comments

@kcondon
Copy link
Contributor

kcondon commented Dec 5, 2017

Cannot delete oauth users with latest orcid 2 changes, required a new db table, which delete does not know about:

[2017-12-05T12:52:37.664-0500] [glassfish 4.1] [WARNING] [] [org.eclipse.persistence.session.file:/usr/local/glassfish4/glassfish
/domains/domain1/applications/dataverse-4.8.3/WEB-INF/classes/_VDCNet-ejbPU] [tid: _ThreadID=28 _ThreadName=http-listener-1(1)] [
timeMillis: 1512496357664] [levelValue: 900] [[

Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.Databas
eException
Internal Exception: org.postgresql.util.PSQLException: ERROR: update or delete on table "authenticateduser" violates foreign key
constraint "fk_oauth2tokendata_user_id" on table "oauth2tokendata"
Detail: Key (id)=(7) is still referenced from table "oauth2tokendata".
Error Code: 0
Call: DELETE FROM AUTHENTICATEDUSER WHERE (ID = ?)
bind => [1 parameter bound]
Query: DeleteObjectQuery([AuthenticatedUser identifier:@kcorcid])

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

Successfully merging a pull request may close this issue.

3 participants