Last modified: 2014-09-15 15:14:35 UTC
Created attachment 16304 [details] sample XML file for use with the batch upload Commons production has no issue resolving the following URL, however, commons beta cannot: http://resolver.kb.nl/resolve?urn=urn:gvn:KONB14:PRENT0141&size=large steps to reproduce ================== note: you can follow these steps without actually running the batch upload. 1. nav to http://commons.wikimedia.beta.wmflabs.org/wiki/Special:GWToolset 2. enter the following values for step 1 a. record: srw_dc:dc b. template: Artwork c. metadata mapping GWToolset:Metadata Mappings/OlafJanssen/KB Centsprenten.json d. XML file: use the attached XML file e. click the submit button 3. click the preview batch button 4. notice the error There was a problem processing the metadata file. <gwtoolset-mapping-media-file-no-content-type> if you follow the above procedure on commons production you will not get an error, but will be brought to the preview batch page.
while working with mediawiki vagrant, i noticed a similar issue to this one. the vagrant wiki would not follow URLs with redirects and produce the error “The file extension could not be determined from the file URL:”. the solution for the vagrant wiki was to add a definition for CURLOPT_REDIR_PROTOCOLS. if ( !defined( 'CURLOPT_REDIR_PROTOCOLS' ) ) { define( "CURLOPT_REDIR_PROTOCOLS", CURLPROTO_HTTP|CURLPROTO_HTTPS|CURLPROTO_FTP|CURLPROTO_FTPS ); } i‘m not sure how to add this definition to commons beta in order to test it. is commons beta using the vagrant gwtoolset role to set itself up? if so, i have created a patch to that puppet role that should fix the issue once +2'd. https://gerrit.wikimedia.org/r/#/c/158950
https://gerrit.wikimedia.org/r/159214 took care of the issue. tested it on commons beta successfully.