Last modified: 2014-09-15 15:14:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72124, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70124 - Commons beta cannot resolve redirect URLs
Commons beta cannot resolve redirect URLs
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: Future release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-28 14:23 UTC by dan
Modified: 2014-09-15 15:14 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
sample XML file for use with the batch upload (10.35 KB, text/xml)
2014-08-28 14:23 UTC, dan
Details

Description dan 2014-08-28 14:23: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.
Comment 1 dan 2014-09-07 22:21:16 UTC
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
Comment 2 dan 2014-09-09 05:29:41 UTC
https://gerrit.wikimedia.org/r/159214 took care of the issue. tested it on commons beta successfully.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links