Last modified: 2014-05-19 22:03:40 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 T55770, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53770 - "The target filename is invalid" when trying to move/delete specific file on Commons
"The target filename is invalid" when trying to move/delete specific file on ...
Status: NEW
Product: Wikimedia
Classification: Unclassified
Media storage (Other open bugs)
wmf-deployment
All All
: High critical with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/wiki/Fi...
: testme
Depends on:
Blocks: commons
  Show dependency treegraph
 
Reported: 2013-09-04 19:02 UTC by Steinsplitter
Modified: 2014-05-19 22:03 UTC (History)
11 users (show)

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


Attachments
Where is the file? I tell you -- it's gone! Screenshot of https://commons.wikimedia.org/wiki/File:Station_59_Dittersh%C3%B6he_bei_Dittersdorf_%28Glash%C3%BCtte%29.jpg (93.55 KB, image/png)
2013-09-04 19:37 UTC, Rainer Rillke @commons.wikimedia
Details

Description Steinsplitter 2013-09-04 19:02:19 UTC
You do not have permission to move this page, for the following reason:
The target filename is invalid 

https://commons.wikimedia.org/wiki/File:Rue_G%C3%A9n%C3%A9ral-Nouvion.JPG

It is not possible to move/delete the file.
Comment 1 Steinsplitter 2013-09-04 19:04:12 UTC
After moving there are some Files broken:
https://commons.wikimedia.org/wiki/Commons:Administrators'_noticeboard#Files are broken after moving
Comment 2 Steinsplitter 2013-09-04 19:07:39 UTC
Reported by User: https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-AjaxQuickDelete.js/auto-errors/5#Autoreport by AjaxQuickDelete 679533204530

Needless to say: There is mounting problems in the last time.
Comment 3 Rainer Rillke @commons.wikimedia 2013-09-04 19:37:39 UTC
Created attachment 13240 [details]
Where is the file? I tell you -- it's gone! Screenshot of https://commons.wikimedia.org/wiki/File:Station_59_Dittersh%C3%B6he_bei_Dittersdorf_%28Glash%C3%BCtte%29.jpg
Comment 4 Steinsplitter 2013-09-05 07:30:03 UTC
https://commons.wikimedia.org/wiki/File:Rue_G%C3%A9n%C3%A9ral-Nouvion.JPG
I cannot delete the broken version of this file )(or rename the file etc.)
Comment 5 Andre Klapper 2013-09-05 12:59:35 UTC
Aaron: As long as this is "fresh", could you take a look at this?

For https://commons.wikimedia.org/wiki/File:Rue_G%C3%A9n%C3%A9ral-Nouvion.JPG I don't see the thumbnail rendered for the old revision, and clicking that old revision says "404 Not Found - The resource could not be found.
Regexp failed to match URI: "/wikipedia/commons/archive/5/59/" ".
Comment 6 Andre Klapper 2013-09-19 15:20:06 UTC
Aaron: Could you take a look at this? Or is this lower level?
Comment 7 Revi 2013-10-16 15:55:46 UTC
I had same problem. (see [[commons:User talk:Hym411#Image missing after rename]]).
And when I failed,the file name exist,but there was no media file on the name. (It was restored with some tricks.)
Comment 8 Revi 2013-10-24 11:45:34 UTC
I moved 30 or 40 images today, and I saw this "The target file name is invalid" for 5 or 6 times. It was fixed after 3 or 4 refreshes.

I wonder if it needs separete bug.
Comment 9 Revi 2013-10-25 10:48:32 UTC
Found another error: When I clicked for Rename, file disappeared. [[commons:File:Islamic_compex_Shakhi_Zinda_-_13.JPG]].
Comment 10 Steinsplitter 2013-10-25 10:52:32 UTC
Could someone take a look at this?
Comment 11 Andre Klapper 2013-10-25 16:31:54 UTC
Aaron / Bryan: ping?
Comment 12 Andre Klapper 2013-11-04 23:58:32 UTC
Aaron / Bryan: Ping - could you take a look at this?
Comment 13 Revi 2013-12-04 03:46:03 UTC
Any updates?
Comment 14 Bawolff (Brian Wolff) 2013-12-04 04:30:52 UTC
Are all these comments about receiving a "The target file name is invalid", followed by file disappearing, or do some people get different errors, or do sometimes things other than the file disapearing happen. As it stands, the bug report is a bit confusing, possibly including separate issues that should have their own bug(?)

Taking a brief look over the code. This error appears to be coming from LocalFileMoveBatch::doDBUpdates in the case it can't update the db. However in the case of that error, its supposed to rollback the db transaction, and bail, all before touching any files on the file system...
Comment 15 Andre Klapper 2014-02-24 10:57:43 UTC
Rainer / Revi /Steinsplitter: I'm sorry this report has not received sufficient attention yet.  Are there recent examples for this problem?
Comment 16 Andre Klapper 2014-05-12 07:01:32 UTC
Are there recent examples for this problem?
Comment 17 Steinsplitter 2014-05-12 09:37:07 UTC
No. The community has reported enough examples sine monts.  Pls query the db for anormal db entrys. It is techs work to find this issues. They have access to to productiondb.

It well known that a lot of such problems (see other mediastoage bugs) are because of the file "broken" backend.
Comment 18 Steinsplitter 2014-05-14 18:06:00 UTC
How can an organization with a budget of US$55 million don't fix such a HIG PRIO bug ??
Comment 19 Bawolff (Brian Wolff) 2014-05-19 20:05:36 UTC
(In reply to Andre Klapper from comment #5)
> Aaron: As long as this is "fresh", could you take a look at this?
> 
> For
> https://commons.wikimedia.org/wiki/File:Rue_G%C3%A9n%C3%A9ral-Nouvion.JPG I
> don't see the thumbnail rendered for the old revision, and clicking that old
> revision says "404 Not Found - The resource could not be found.
> Regexp failed to match URI: "/wikipedia/commons/archive/5/59/" ".

I believe the broken old version of the file is caused by (the now fixed) bug 54736 (Since it has mising archive name, exact same timestamp as other version, and was uploaded by upload wizard). I probable conjecture is that the broken nature of this file is preventing other actions to happen to this file, as a safety precaution when the code notices that it cannot succesfully move/delete/etc the file, so it doesn't do anything to prevent the translation of an inconsistent state/unknown state into a further data loss state. Maybe. That's just a guess with no checking or evidence to back it up.
Comment 20 Bawolff (Brian Wolff) 2014-05-19 21:29:30 UTC
(In reply to Bawolff (Brian Wolff) from comment #19)
> (In reply to Andre Klapper from comment #5)
> > Aaron: As long as this is "fresh", could you take a look at this?
> > 
> > For
> > https://commons.wikimedia.org/wiki/File:Rue_G%C3%A9n%C3%A9ral-Nouvion.JPG I
> > don't see the thumbnail rendered for the old revision, and clicking that old
> > revision says "404 Not Found - The resource could not be found.
> > Regexp failed to match URI: "/wikipedia/commons/archive/5/59/" ".
> 
> I believe the broken old version of the file is caused by (the now fixed)
> bug 54736 (Since it has mising archive name, exact same timestamp as other
> version, and was uploaded by upload wizard). I probable conjecture is that
> the broken nature of this file is preventing other actions to happen to this
> file, as a safety precaution when the code notices that it cannot
> succesfully move/delete/etc the file, so it doesn't do anything to prevent
> the translation of an inconsistent state/unknown state into a further data
> loss state. Maybe. That's just a guess with no checking or evidence to back
> it up.

Testing this theory, I tried locally creating a file that would have bad database entries similar to what bug 54736 would cause (via just adding a dummy oldimage entry without an oi_archive_name), to see if moving/deleting is affected. However I could still move/delete my test file just fine. So no go on that. However it could be that either the physical files are messed up, or that different code paths are executed when using swift vs when using normal file system image backend (like my local wiki uses)
Comment 21 Bawolff (Brian Wolff) 2014-05-19 22:03:40 UTC
For issue of why we have some files with broken history still happening after the other bug fix, I'm splitting that off to bug 65511, so that this bug could just be about inability to move/delete certain files.

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


Navigation
Links