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

File uploader new context object committed before upload #8877

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Andries-Smit
Copy link
Contributor

When a new context object is not committed before the multiple upload starts, the upload of the file will trigger the commit via the associated to the object. When context is not in the DB many simultaneous request might cause the the commit to happen multiple times. Cause an error:

com.mendix.systemwideinterfaces.connectionbus.data.UniqueConstraintViolationRuntimeException: Duplicate column value violates its unique constraint: 
integrity constraint violation: unique constraint or index violation ; 
SYS_PK_10349 table: "fileuploader$fileuploadcontext" (SQL State: 23505, Error Code: -104) 
Detail Message: org.hsqldb.HsqlException: integrity constraint violation: unique constraint or index violation ; 
SYS_PK_10349 table: "fileuploader$fileuploadcontext"

@takumagott
Copy link
Contributor

Note: Please wait with reviewing. We will see if we can provide a quick fix for this issue next sprint. If so, we will not need this disclaimer.

@ConnorLand ConnorLand self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants