[
https://issues.apache.org/jira/browse/OFBIZ-12920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822510#comment-17822510
]
originalnichtskoenner edited comment on OFBIZ-12920 at 3/1/24 11:14 AM:
------------------------------------------------------------------------
Hi [~jleroux] ,
there might be a problem with the current solution: files can be uploaded that
contain more files that are not needed by ZUGFeRD / Factur-X.
I think uploading a file should only be allowed if there is *no attachment* or
*exactly one* that *can be parsed* using the ZUGFeRDImporter.
If there are more attachments the file should still be rejected. What do you
think?
I attached an empty .exe file to the test pdf from before and was able to
upload it. -> [^invalid_sample_invoice.pdf]
I can take care of this if you agree.
Best regards
was (Author: JIRAUSER292619):
Hi [~jleroux] ,
there might be a problem with the current solution: files can be uploaded that
contain more files that are not needed by ZUGFeRD / Factur-X.
I think uploading a file should only be allowed if there is *exactly one*
attachment that *can be parsed* using the ZUGFeRDImporter.
If there are more attachments the file should still be rejected. What do you
think?
I attached an empty .exe file to the test pdf from before and was able to
upload it. -> [^invalid_sample_invoice.pdf]
I can take care of this if you agree.
Best regards
> Allow uploading ZUGFeRD compliant pdf files
> -------------------------------------------
>
> Key: OFBIZ-12920
> URL: https://issues.apache.org/jira/browse/OFBIZ-12920
> Project: OFBiz
> Issue Type: Improvement
> Components: framework/security
> Affects Versions: Upcoming Branch
> Reporter: originalnichtskoenner
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Upcoming Branch
>
> Attachments: invalid_sample_invoice.pdf, sample_invoice.pdf
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)