We receive an MDN with the following Disposition field:
Disposition: automatic-action/MDN-sent-automatically; processed/Error: unexpected-processing-error
In the resulting AS2MessageDispositionNotificationEntity
the variable dispositionType
contains “processed” (correct), while dispositionModifier is null (though it should contain “Error: unexpected-processing-error”.
Looking into the method resposible for parsing org.apache.camel.component.as2.api.entity.AS2DispositionModifier::parseDispositionType it seems that the case of the indicator is wrong (“error: unexpected-processing-error” instead of “Error: unexpected-processing-error”).
In the corresponding RFC4130, it’s not clear to me which case should be used, it’s either
- section 7.4.3: error: unexpected-processing-error
- section 7.5.4: Error: unexpected-processing-error
Would it be an option to allow both cases, e.g. by using a lower-cased string for comparison?