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

Error when trying to update S3 binary field #1211

Open
rhoxhaj opened this issue Jun 10, 2021 · 0 comments
Open

Error when trying to update S3 binary field #1211

rhoxhaj opened this issue Jun 10, 2021 · 0 comments
Assignees
Labels

Comments

@rhoxhaj
Copy link
Contributor

rhoxhaj commented Jun 10, 2021

Gentics Mesh Version, operating system, or hardware.

  • v1.7.x

Operating System

  • Linux
  • MacOSX
  • Windows

JVM

  • Oracle JDK 1.8.0_100
  • Open JDK 1.8.0_100

Problem

When trying to replace a file in S3 using the upload endpoint, a duplicated key exception is thrown.

Reproducer

In S3 Upload Handler, if the code is modified to create two s3 binaries instead of one inside the tx, a ORecordDuplicatedException is thrown.

Expected behaviour

There should be only one S3 Binary for a specific objectKey and there shouldn't be duplicated records.

Actual behaviour

There can be more than one created S3 Binary Field with the same objectKey.

@rhoxhaj rhoxhaj added the bug label Jun 10, 2021
@rhoxhaj rhoxhaj self-assigned this Jun 10, 2021
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

1 participant