Mattschillinger / wikiteam

Automatically exported from code.google.com/p/wikiteam
0 stars 0 forks source link

dumpgenerator.py --images fails download on nginx website (error 405) #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Do a normal API based Full XML+Image Dump using SVN Trunk 
2. All requests are done via POSTs in the script
3. This only happens when the file is "Real" (Isnt pass on to outside scripts, 
but nginx is reading right from the file system)

nginx version: nginx/1.4.2
PHP 5.4.18-1~dotdeb.0

You are welcome to test at http://pcgamingwiki.com/api.php

Original issue reported on code.google.com by jrwr00 on 24 Oct 2013 at 6:59

GoogleCodeExporter commented 8 years ago
Log File Except

2607:5300:60:ad1::1 - - [24/Oct/2013:01:52:53 -0400]  [pcgamingwiki.com] "POST 
/images/2/2e/Zen_Puzzle_Garden_cover.png HTTP/1.0" 405 166 "-" "Mozilla/5.0 
(X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0"

Original comment by jrwr00 on 24 Oct 2013 at 6:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Command use: python launcher.py listwikis.txt

List contents

http://pcgamingwiki.com/api.php
http://siryouarebeinghuntedwiki.com/api.php
http://ftlwiki.com/api.php

Original comment by jrwr00 on 24 Oct 2013 at 7:11

GoogleCodeExporter commented 8 years ago
Have you tested this with any other nginx website?

Original comment by nemow...@gmail.com on 25 Oct 2013 at 12:40

GoogleCodeExporter commented 8 years ago

Original comment by nemow...@gmail.com on 25 Oct 2013 at 12:49

GoogleCodeExporter commented 8 years ago
No, but I am willing to provide the raw nginx config if you need it, but I 
noticed that the POST method was being used to bypass a bug, why do you try 
doing GETs first then a POST if the image isn't valid, maybe some better error 
checking too see if the server did not return 200

Original comment by jrwr00 on 25 Oct 2013 at 1:24

GoogleCodeExporter commented 8 years ago
Made it a simple GET with r851. Let's hope it doesn't cause problems elsewhere. 
:)

Original comment by nemow...@gmail.com on 1 Nov 2013 at 11:07

GoogleCodeExporter commented 8 years ago
what could be done is the test the status return, and if its not content (200) 
then try a POST

Original comment by jrwr00 on 2 Nov 2013 at 12:46