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
Permissions lost when doing something transactional in the afterCommit handler of a Job #6124
Milestone
Comments
@tommydeboer and I ran into this working on the mapping service jobs. We're not yet completely sure what exactly is wrong but here's the best we got so far. When you run the mapping service, the job runs in a transaction with a manually created TransactionTemplate that references the MolgenisPlatformManager.
|
19 tasks
fdlk
changed the title
Permissions lost when doing something transactional in a commit handler
Permissions lost when doing something transactional in the afterCommit handler
Apr 26, 2017
|
fdlk
changed the title
Permissions lost when doing something transactional in the afterCommit handler
Permissions lost when doing something transactional in the afterCommit handler of a Job
Apr 26, 2017
tommydeboer
added a commit
that referenced
this issue
May 2, 2017
Fix #6124 Permissions lost when doing something transactional in the …
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to Reproduce
This only happens in a weird constellation of circumstances. Unfortunately it happens when we run the mapping service as a job.
Check out the code for #6123, create a mapping project, with target TypeTestRef, sources TypeTestRef and ScriptType. Fill in the missing values and start a mapping job mapping the data to a non-existing entity.
Expected behavior
It works.
Observed behavior
The mapping job fails, stating that you have no read permissions on EntityType.
The text was updated successfully, but these errors were encountered: