itplr-kosit / validator-configuration-xrechnung

Configuration for validating documents against the German XRechnung standard using the KoSIT validation tool
https://xeinkauf.de/xrechnung/
Apache License 2.0
62 stars 17 forks source link

Please Provide Validation against the possible Attachment MimeTypes #20

Closed thomaspz closed 3 years ago

thomaspz commented 4 years ago

If I use an unsupported MimeType in Additional-Documents, no Validation Errors are thrown.

From 1.2.0 spec : https://www.xoev.de/sixcms/media.php/13/XRechnung-v1-2-0.pdf

Der MIME Code des angehängten Dokumentes. Zugelassen sind die Codes
• application/pdf
• image/png
• image/jpeg
• text/csv
• application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
• application/vnd.oasis.opendocument.spreadsheet

01.15a-INVOICE_ubl_nicht_unterstuezter_mimetyp.xml.zip

If I vaildate the example Invoice 01_15_ubl with embeed Document, but not supported Mime-Type, the validation is o.k.; Expected : Validation error.

Please add validation Rules for supported Mime-Types from additional Documents defined in spec.

rkottmann commented 4 years ago

thx for reporting, this is scheduled for this year summer release. See also https://projekte.kosit.org/xrechnung/xrechnung/issues/59

rkottmann commented 3 years ago

should have been fixed by the summer release. Hence closing.

tze commented 3 years ago

I think this is still an issue for CEFACT. Please have a look at #40