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

PDF invoices in /var folder #14517

Closed
erichagz opened this issue Apr 3, 2018 · 3 comments
Closed

PDF invoices in /var folder #14517

erichagz opened this issue Apr 3, 2018 · 3 comments
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@erichagz
Copy link

erichagz commented Apr 3, 2018

Preconditions

  1. AWS EC2 C4-Large, Ubuntu 16.04.4 LTS, PHP 7.0.28-0ubuntu0.16.04.1
  2. Magento 2.2.2
  3. Also using AWS Redis for page caching. Following directions on https://devdocs.magento.com/guides/v2.2/config-guide/redis/redis-pg-cache.html

Steps to reproduce

  1. Create invoice
  2. Print invoice

Expected result

  1. PDF Generation (maybe in cache) happens properly for client and user
  2. PDF maybe should not be created at all?

Actual result

  1. Creates PDF copy in the /var folder

-rw-rw-r-- 1 www-data www-data 2013893 Apr 2 21:07 invoice2018-04-02_21-07-00.pdf
-rw-rw-r-- 1 www-data www-data 2014019 Apr 3 12:41 invoice2018-04-03_12-41-06.pdf
-rw-rw-r-- 1 www-data www-data 1558155 Apr 3 12:52 invoice2018-04-03_12-52-36.pdf
-rw-rw-r-- 1 www-data www-data 2015663 Apr 3 13:26 invoice2018-04-03_13-26-28.pdf
-rw-rw-r-- 1 www-data www-data 1558369 Apr 3 13:43 invoice2018-04-03_13-43-12.pdf
-rw-rw-r-- 1 www-data www-data 2014032 Apr 3 13:45 invoice2018-04-03_13-45-22.pdf
-rw-rw-r-- 1 www-data www-data 2014195 Apr 3 14:04 invoice2018-04-03_14-04-53.pdf
-rw-rw-r-- 1 www-data www-data 2014212 Apr 3 14:08 invoice2018-04-03_14-08-05.pdf
-rw-rw-r-- 1 www-data www-data 2015663 Apr 3 14:13 invoice2018-04-03_14-13-27.pdf
-rw-rw-r-- 1 www-data www-data 2013876 Apr 3 14:18 invoice2018-04-03_14-18-26.pdf
-rw-rw-r-- 1 www-data www-data 2016614 Apr 3 14:53 invoice2018-04-03_14-53-14.pdf
-rw-rw-r-- 1 www-data www-data 2014914 Apr 3 14:54 invoice2018-04-03_14-54-15.pdf
-rw-rw-r-- 1 www-data www-data 2013543 Apr 3 15:08 invoice2018-04-03_15-08-33.pdf
-rw-rw-r-- 1 www-data www-data 2017829 Apr 3 15:48 invoice2018-04-03_15-48-19.pdf
-rw-rw-r-- 1 www-data www-data 1558155 Apr 3 15:58 invoice2018-04-03_15-58-48.pdf
-rw-rw-r-- 1 www-data www-data 2014961 Apr 3 16:12 invoice2018-04-03_16-12-38.pdf
-rw-rw-r-- 1 www-data www-data 2013969 Apr 3 16:23 invoice2018-04-03_16-23-52.pdf
-rw-rw-r-- 1 www-data www-data 2014070 Apr 3 16:59 invoice2018-04-03_16-59-58.pdf
-rw-rw-r-- 1 www-data www-data 2013838 Apr 3 17:03 invoice2018-04-03_17-03-43.pdf
-rw-rw-r-- 1 www-data www-data 2014539 Apr 3 17:05 invoice2018-04-03_17-05-38.pdf
-rw-rw-r-- 1 www-data www-data 2013866 Apr 3 17:17 invoice2018-04-03_17-17-57.pdf
-rw-rw-r-- 1 www-data www-data 2014325 Apr 3 17:34 invoice2018-04-03_17-34-30.pdf
-rw-rw-r-- 1 www-data www-data 2013543 Apr 3 17:35 invoice2018-04-03_17-35-59.pdf
drwxrwsr-x 2 www-data www-data 4096 Mar 28 17:14 log
-rw-rw-r-- 1 www-data www-data 2007347 Nov 15 17:17 packingslip2017-11-15_17-17-43.pdf
drwxrwsr-x 2 www-data www-data 4096 Jan 16 20:20 page_cache
drwxrwsr-x 3 www-data www-data 1228800 Apr 3 17:08 report
-rw-rw-r-- 1 www-data www-data 216 Apr 3 17:36 resource_config.json
drwxrwsr-x 3 www-data www-data 4096 Feb 13 21:38 tmp
drwxrwsr-x 3 www-data www-data 4096 Mar 30 09:28 view_preprocessed

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Apr 3, 2018
@ghost ghost self-assigned this Jul 19, 2018
@ghost ghost added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Jul 19, 2018
@ghost
Copy link

ghost commented Jul 19, 2018

Duplicate of #3535

@ghost ghost marked this as a duplicate of #3535 Jul 19, 2018
@ghost ghost closed this as completed Jul 19, 2018
@magento-engcom-team
Copy link
Contributor

Hi @erichagz. Thank you for your report.
The issue has been fixed in #16401 by @rogyar in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.6 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Jul 29, 2018
@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Aug 10, 2018
@magento-engcom-team
Copy link
Contributor

Hi @erichagz. Thank you for your report.
The issue has been fixed in #17280 by @tiagosampaio in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

2 participants