Skip to content

308 Fix for DwCA upload failing#309

Merged
nickdos merged 1 commit into
developfrom
308-uploading-dwca-to-dr-results-in-exception
Jun 25, 2026
Merged

308 Fix for DwCA upload failing#309
nickdos merged 1 commit into
developfrom
308-uploading-dwca-to-dr-results-in-exception

Conversation

@nickdos

@nickdos nickdos commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@nickdos nickdos linked an issue Jun 25, 2026 that may be closed by this pull request
@nickdos
nickdos requested a review from Copilot June 25, 2026 02:20
@nickdos nickdos changed the title #308 Fix for DwCA upload failing 308 Fix for DwCA upload failing Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes DwCA upload failures caused by Hibernate update/delete operations occurring outside of an active transaction (as reported in #308), by ensuring the DataResource update and contact synchronization run within a single GORM transaction.

Changes:

  • Wrap dataResource.connectionParameters update + save(flush: true) in DataResource.withTransaction.
  • Move iptService.syncContacts(...) into the same transaction to prevent TransactionRequiredException during delete/flush operations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nickdos
nickdos merged commit b633879 into develop Jun 25, 2026
1 check passed
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.

Uploading DwCA to DR results in exception

2 participants