I can supply a control condition. The Bodleian Library URLs, which work without a problem, have the similar form: http://iiif.bodleian.ox.ac.uk/iiif/image/e998e3d6-17e2-40ca-bf23-bc4278feb19... Note that there is a comma but no dot before the filename. This suggests that commas are not the problem.
-----Original Message-----
------------------------------
Message: 2 Date: Thu, 4 Feb 2016 18:14:26 +0100 From: Sébastien Santoro dereckson@espace-win.org To: Conversations revolving around the development of GLAM Digital Tools glamtools@lists.wikimedia.org Subject: Re: [Glamtools] GW Toolset problems Message-ID: CAKg6iAEi1dFqSZDXAhRAHFeybTjCKnDb5fqsVX34dLQ=pb4GEA@mail.gmail.com Content-Type: text/plain; charset=UTF-8
Not only the site is whitelisted, but I've manually tested upload by URL using [[Special:Upload]] ant it works.
The URL contains two non alphanumeric elements in path : "2.0" and "1000," so I'd guess it's where to find an explanation
Hypothesis 1: GWT considers the extension is ".0/image/1293358/full/1000,/0/default.jpg", which is not ".jpg"
Hypothesis 2: GWT stop to parse the URL before the comma and want to handle http://dams.llgc.org.uk/iiif/test/2.0/image/1293358/full/1000, where there isn't any extension and is 404.
The dot in URL is rather frequent, the comma less, so the second hypothesis is more plausible.
On Thu, Feb 4, 2016 at 6:08 PM, Jason J. Evans jason.evans@llgc.org.uk wrote:
Hello everyone, I am trying to do a batch upload using the GW Toolset but the tool will not recognize the file extension from the Image URL's provided. Here is an example of a url from the XML file:
http://dams.llgc.org.uk/iiif/test/2.0/image/1293358/full/1000,/0/default.jpg
Any ideas as to why this doesn't work? (site is white-listed ect)
Thanks
Jason
Jason Evans Wicipediwr Preswyl / Wikipedian in Residence Llyfrgell Genedlaethol Cymru / National Library of Wales jason.evans@llgc.org.uk Ffon/Tel: +44 (0)1970 632405
Glamtools mailing list Glamtools@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/glamtools
On Fri, Feb 5, 2016 at 5:10 AM, Martin Poulter martin.poulter@bodleian.ox.ac.uk wrote:
I can supply a control condition. The Bodleian Library URLs, which work without a problem, have the similar form: http://iiif.bodleian.ox.ac.uk/iiif/image/e998e3d6-17e2-40ca-bf23-bc4278feb19... Note that there is a comma but no dot before the filename. This suggests that commas are not the problem.
This file sends the correct image/jpeg mime type:
bawolff@tools-bastion-01:~$ HEAD 'http://iiif.bodleian.ox.ac.uk/iiif/image/e998e3d6-17e2-40ca-bf23-bc4278feb19...' 200 OK Cache-Control: max-age=86400 Connection: close Date: Tue, 02 Feb 2016 16:02:04 GMT Via: 1.1 varnish-v4 Age: 0 Server: iipsrv/1.0 Content-Length: 97569 Content-Type: image/jpeg Last-Modified: Mon, 01 Sep 2014 18:01:07 GMT Access-Control-Allow-Origin: * Client-Date: Fri, 05 Feb 2016 11:31:00 GMT Client-Peer: 163.1.141.208:80 Client-Response-Num: 1 Content-Disposition: inline;filename="full_lossless.jpg" X-Cache: HIT X-Cache-Hits: 4 X-Varnish: 12281155 11378260
Note the Content-Type: image/jpeg line.
-- -bawolff