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

Tokens + JdoCredentialStore - Transient instances cant be deleted #48

Closed
wonderfly opened this issue Jan 9, 2015 · 6 comments
Closed
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@wonderfly
Copy link
Contributor

From martin.v...@fronde.com on August 06, 2012 21:32:12

google-oauth-java-client : 1.10.1-beta
Java 6.33 32bit, Linux

GoogleAuthorizationCodeFlow flow = gBuilder.setAccessType("offline").setApprovalPrompt("force").setCredentialStore(new JdoCredentialStore(persistenceFactory)).build();

when i am trying to delete stored credential :

Credential credential = getStoredCredential(userId);
getFlow().getCredentialStore().delete(userId, credential);

I got message :

javax.jdo.JDOUserException: Transient instances cant be deleted.

Caused by :

javax.jdo.JDOUserException: Transient instances cant be deleted.
at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:375)
at org.datanucleus.jdo.JDOPersistenceManager.jdoDeletePersistent(JDOPersistenceManager.java:759)
at org.datanucleus.jdo.JDOPersistenceManager.deletePersistent(JDOPersistenceManager.java:772)
at com.google.api.client.extensions.jdo.auth.oauth2.JdoCredentialStore.delete(JdoCredentialStore.java:57)
at com.fronde.google.mailmerge.utils.UserUtils.deleteStoredCredential(UserUtils.java:227)

New (users) credentials are created, but is not possible to remove tokens.

Any ideas ? In previous version (1.6.0) Credentials were stored directly not through JDOCredentialStore, maybe that`s the problem.
Thank you

Original issue: http://code.google.com/p/google-oauth-java-client/issues/detail?id=48

@wonderfly wonderfly added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. imported priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From rmis...@google.com on January 14, 2013 07:18:59

Owner: yan...@google.com

@wonderfly wonderfly self-assigned this Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From yan...@google.com on January 14, 2013 08:06:32

Cc: ngmic...@google.com
Labels: Milestone-Version1.14.0 Component-OAuth2

@wonderfly
Copy link
Contributor Author

From yan...@google.com on February 04, 2013 20:47:42

Labels: -Milestone-Version1.14.0 Milestone-Version1.15.0

@wonderfly
Copy link
Contributor Author

From pele...@google.com on April 18, 2013 08:58:03

Owner: pele...@google.com
Cc: yan...@google.com

@wonderfly
Copy link
Contributor Author

From pele...@google.com on April 18, 2013 09:21:55

Solving issue #46 , going to solve that one as well https://codereview.appspot.com/7575043/

Status: Started

@wonderfly
Copy link
Contributor Author

From pele...@google.com on April 23, 2013 12:47:59

Status: Fixed

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants