mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-26 15:01:14 +00:00
Sanitize 400 error messages in GlobalExceptionHandler and validation filters to use static strings. This change improves consistency and prevents leaking internal exception details. Updated tests to reflect new error messages for JSON parsing and bad request scenarios.
This commit is contained in:
@@ -173,7 +173,7 @@ public class UavTileUploadHandlerTests : IDisposable
|
||||
|
||||
// Assert
|
||||
result.EnvelopeRejected.Should().BeTrue();
|
||||
result.EnvelopeError.Should().Contain("Invalid `metadata` JSON");
|
||||
result.EnvelopeError.Should().Be("`metadata` could not be parsed as JSON.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user