[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management

WordPress Trac noreply at wordpress.org
Wed Oct 19 18:41:33 UTC 2016


#31050: Better PDF Upload Management
-------------------------------------------------+-------------------------
 Reporter:  celloexpressions                     |       Owner:
     Type:  feature request                      |  mikeschroder
 Priority:  normal                               |      Status:  assigned
Component:  Media                                |   Milestone:  4.7
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-unit-tests needs-    |  Resolution:
  testing                                        |     Focuses:  ui
-------------------------------------------------+-------------------------

Comment (by Ipstenu):

 > Any chance you could use dev tools to check on what the HTTP
 response/content was, to give us an idea on why it failed?

 Sorry about the delay. Was offline.

 It's a 502 Bad Gateway all along the way.

 '''Safari's Request & Response:'''

 {{{
 POST
 Cached  No
 Status  Bad Gateway
 Code    502
 Encoded 166 B
 Decoded 166 B
 Transferred     329 B
 }}}

 '''Chrome's Response Headers:'''

 {{{
 Connection:keep-alive
 Content-Length:568
 Content-Type:text/html; charset=utf-8
 Date:Wed, 19 Oct 2016 18:39:05 GMT
 Server:nginx
 }}}

 Testing just that PDF worked a second time on a fresh setup of the same
 flavor. So I ran them all again and got ''different'' PDFs failing. This
 made me wonder if the issue was how many I was uploading at once, though
 `/srv/log/php_errors.log` was empty. Also once a PDF failed, it failed
 'forever' which was weird. (Now a file called SRA2.pdf is failing...
 Attached for grins and giggles)

 I ran an svn up again and re-tested with 31050.2.diff - same problem, but
 the same "new" PDF.

 Turned on Xdebug and reloaded Vagrant. Same errors.

 Both PDFs were made in MS PowerPoint on a Windows XP box.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31050#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list