Skip to content

[FIX] edi_core_oca: use savepoint to prevent state corruption on errors#284

Open
guewen wants to merge 1 commit into
OCA:18.0from
qoqa:18.0-fix-error-handling-state-corruption
Open

[FIX] edi_core_oca: use savepoint to prevent state corruption on errors#284
guewen wants to merge 1 commit into
OCA:18.0from
qoqa:18.0-fix-error-handling-state-corruption

Conversation

@guewen
Copy link
Copy Markdown
Member

@guewen guewen commented May 21, 2026

Some errors such as

  ValueError,
  FileNotFoundError,
  exceptions.UserError,
  exceptions.ValidationError,

are caught, never re-raised, and the transaction is finally committed.

Which means a UserError/ValidationError gets committed, leading to corruption of the processed data.

Some errors such as

  ValueError,
  FileNotFoundError,
  exceptions.UserError,
  exceptions.ValidationError,

are caught, never re-raised, and the transaction is finally committed.

Which means a UserError/ValidationError gets committed, leading to
corruption of the processed data.
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @simahawk, @etobella,
some modules you are maintaining are being modified, check this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants