Skip to content

Dispatch case-server exception on import#173

Merged
etiennehomer merged 3 commits intomainfrom
dispatch_case_server_exception_on_import
Mar 5, 2026
Merged

Dispatch case-server exception on import#173
etiennehomer merged 3 commits intomainfrom
dispatch_case_server_exception_on_import

Conversation

@etiennehomer
Copy link
Collaborator

PR Summary

We don't want to recreate a business error when an exception in throw during case import. We should just dispatch case-server business error.

Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Copy link
Contributor

@Mathieu-Deharbe Mathieu-Deharbe left a comment

Choose a reason for hiding this comment

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

This is probably because of powsybl/powsybl-case-server#137

But what used to be a 422 error (trying to import a zip file with an xml extension) is now a 500 error :

Image

Used to be :

Image

The error is identical when imported a situation :
image

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Copy link
Contributor

@Mathieu-Deharbe Mathieu-Deharbe left a comment

Choose a reason for hiding this comment

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

OK : the missing error messages are not caused by this PR and will be handled in another ticket.

@etiennehomer etiennehomer merged commit cce1bd1 into main Mar 5, 2026
3 checks passed
@etiennehomer etiennehomer deleted the dispatch_case_server_exception_on_import branch March 5, 2026 14:19
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