gentics / gentics/mesh

Error when trying to update S3 binary field

Open
#1,211 0 comments 0 reactions 1 assignee Claimed by @rhoxhaj View on GitHub
bug
Dominant language
Java
Stars
593
Forks
123
Avg merge
2d 18h
Merged PRs (30d)
4

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.