-
Notifications
You must be signed in to change notification settings - Fork 3
Different problems when sending requests with either empty or whitespace values #1070
Comments
VR912 to be addressed, afterwhich the bug is ready for product backlog |
VR.912 issue still relevant. Added a few notes to it. Moved to product backlog |
Removed below, as they are no longer relevant:
|
All exceptions thrown as part of parsing the marketdocument is thrown as a synchron B2B message. Values that can be ignored and collected either as a documentvalidation or inputvalidation don't throw a synchron B2B message. |
18.11. |
28.11.2022 Status OK (VR.223) Submitting empty or whitespaces as ChargeOperationId (cim:mRID) => StatusCode 500; System.InvalidOperationException => (Cannot ReadValueAs when there is no value (CanReadValue is false).) OK Space Type doesn't exit B2B-005
The specified input does not pass schema validation.
SchemaValidationError
The 'urn:ediel.org:structure:requestchangeofpricelist:0:1:type' element is invalid - The value 'D99' is invalid according to its datatype 'urn:ediel.org:structure:requestchangeofpricelist:0:1:MessageKind_String' - The value 'D99' is not valid according to any of the memberTypes of the union.
(VR.424) Submitting 'D02' in cim:process.processType => status 500. Status OK SchemaValidationError
The 'urn:ediel.org:structure:requestchangeofpricelist:0:1:type' element is invalid - The value 'D05' is invalid according to its datatype 'urn:ediel.org:structure:requestchangeofpricelist:0:1:ChargeKind_String' - The value 'D05' is not valid according to any of the memberTypes of the union.
Emty Space (VR.449) Submitting whitespaces as ChargeType => StatusCode 500; System.InvalidOperationException => (Cannot ReadValueAs when there is no value (CanReadValue is false).) Status (VR.912) Submitting a schema valid value (P1Y) for Charge Prices only (D08) => StatusCode 500. Problem lies in the ChargeCommandBundleConverter.cs in conjunction with public static string Map(Resolution resolution) in the ResolutionMapper.cs |
Submitting requests to the Charges domain with empty - or whitespace values are problematic
Mostly they results in the actor receiving a StatusCode 500 - internal server error
And in one case, the whitespace value is allowed, but will cause a problem downstream between charges and messagehub (message hub throws an exception as GLN is missing).
We need a solution to these whitespace and empty value problems, which returns a useful rejection to the sender.
COO: According to TI, we are not allowed to cleanup spaces.
Observations:
ChargeCommandBundleConverter.cs
in conjunction withpublic static string Map(Resolution resolution)
in theResolutionMapper.cs
The text was updated successfully, but these errors were encountered: