Last modified: 2013-10-23 18:17:27 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 T35984, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33984 - the --comment-ext=".XXX" option of importImages.php fails to import the metadata text
the --comment-ext=".XXX" option of importImages.php fails to import the metad...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.18.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-27 09:53 UTC by Gregor Hagedorn
Modified: 2013-10-23 18:17 UTC (History)
2 users (show)

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


Attachments
Example of a text-metadata file which fails to import (without error message) on importImages.php (423 bytes, application/octet-stream)
2012-01-30 21:56 UTC, Gregor Hagedorn
Details

Description Gregor Hagedorn 2012-01-27 09:53:11 UTC
A command of the type:

sudo -u www-data php ./maintenance/importImages.php  --conf ./LocalSettings.php --comment-ext=".meta" --user="XXX" /var/www/v-species/o/tmp 

imports only the images, ignoring a metadata text (for the corresponding wiki page) having (in this case) the extension ".meta". This happens regardless of whether the combination is:

x.jpg
x.meta

or

x.jpg
x.jpg.meta

Docu page is http://www.mediawiki.org/wiki/Manual:ImportImages.php

No solution found.
Comment 1 Chad H. 2012-01-30 18:17:37 UTC
Can't replicate using 1.18wmf1, just used importImages.php earlier today with --comment-ext=txt.
Comment 2 Gregor Hagedorn 2012-01-30 18:53:17 UTC
Is it --comment-ext=".meta" or --comment-ext="meta"?
I tried both originally and just a minute ago retested both options with mediawiki 1.18.1. The result is:
No error message, just 

Importing test23.png...done.
Found: 1
Added: 1

and the file metadata page and the upload comment contain:
(Importing image file)

Mediawiki version: http://species-id.net/openmedia/Special:Version
Comment 3 Chad H. 2012-01-30 20:06:53 UTC
I used --comment-ext=txt. No quotes, no leading period on the extension.
Comment 4 Gregor Hagedorn 2012-01-30 21:56:39 UTC
Created attachment 9929 [details]
Example of a text-metadata file which fails to import (without error message) on importImages.php
Comment 5 Gregor Hagedorn 2012-01-30 21:59:30 UTC
Tried: using the commandline without quotes and leading period, using a three-letter extension (mta) instead of 4 letter (meta), using the 3 letter with x.png.meta for the image file x.png - no success, in all cases the meta file is ignored without error message. Attaching a metadata file example, with the request to Chad: can you test whether it is actually the kind of files that causes problems, rather than the way to specify the comment-ext?
Comment 6 Gregor Hagedorn 2012-03-21 14:27:23 UTC
Closing the bug - the bug was due to a local misconfiguration (not helpful to report, it is truly local: we have a unique process to cache media from commons, because the API-access to wmf commons it often severaly overload; we are willing to share that code, but only then will any insight into the bug be useful to others.). 

My sincere apologies to those who investigated the bug. In the end it did help us to realize that the problem must be local, so thanks!

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


Navigation
Links