Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrderItem PDF download #32

Closed
jollopre opened this issue Sep 24, 2017 · 1 comment
Closed

OrderItem PDF download #32

jollopre opened this issue Sep 24, 2017 · 1 comment
Labels
bug A ticket open to solve a problem that is affecting the normal behaviour of the system

Comments

@jollopre
Copy link
Owner

jollopre commented Sep 24, 2017

When trying to download a PDF for a given order item through Firefox, the PDF appears to be generated by the server, however in Firefox the dialog to download/cancel the file attachment is not prompted.
The time estimated to complete this task is 3 hours.

@jollopre jollopre added the bug A ticket open to solve a problem that is affecting the normal behaviour of the system label Sep 24, 2017
@jollopre jollopre added this to the Pre-Launch v1.1.0 milestone Oct 21, 2017
jollopre added a commit that referenced this issue Jan 15, 2018
jollopre added a commit that referenced this issue Jan 17, 2018
fixed bug for export orderItem on Firefox. #32
@jollopre
Copy link
Owner Author

The exporting functionality for orderItem returns binary data to the browser. As that URL resource is protected, i.e. requires http authentication with token, the client code (e.g. JavaScript) generates an HTML anchor whose URL represents a blob object from the data received.

Chrome and Sarafi behave fine if JavaScripts triggers the click for an HTML anchor, however Firefox requires any HTML anchor to be appended to a document in order to work properly. See more details regarding Firefox unexpected behaviour at (https://bugzilla.mozilla.org/show_bug.cgi?id=1218456)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A ticket open to solve a problem that is affecting the normal behaviour of the system
Projects
None yet
Development

No branches or pull requests

1 participant