Last modified: 2012-04-12 13:55:48 UTC
When i view the a file that's uploaded on my Wiki it normally shows a "upload new version of this file" link. With *.PNG and *.PDF it's not shown and so there can't be uploaded new versions of the same file.
Can't reproduce. Do you have any custom media handlers installed? Is the $wgUploadNavigationUrl set?
This is not set in localsettings.php and in DefaultSettings it's set to "false". There are no custom Media handlers installed as far as i know. Strange thing is that it happens only with PDF and PNG, which are both in my LocalSettings: $wgFileExtensions = array('avi', 'zip', 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'pages', 'numbers', 'key', 'sldprt', 'sldasm', 'slddrw', 'graffle', 'mov'); It's really strange because it even looks like it logs me out as i want to see that file-pages. My name is gone and it only shows "login" at the top of the screen. Loggin back in, tells me that it's not possible because of hijacking.
If you then go to another page, are you still logged out or not?
No, if i go to another file-page (.pages, .doc, .numbers) i'm logged in again and i see the link "upload a new version of this file" back again.
Anyone got a clue? It's really freaking me out why this is happening while other file extensions just show the "upload new version of this file" link and don't act like i'm logged out.
Could you list the extensions you have installed?
Yes: QrCode (broken because an upload failure, see https://bugzilla.wikimedia.org/show_bug.cgi?id=27656), BreadCrumbs, ConfirmEdit, EmailAddressImage and SelectCategory That's all of 'em.
first thought would be that QrCode might be causing something. Disable it and try again?
My guesses are caching or sessions, but that doesn't explain why it only happens on PDF and PNGs.
Disabled all 5 extensions: no result, still the same issue.
Addition to this bug: it also happens with .jpg files. Someone else on the same hosting company has this issue. Don't know where to search for a solution.
To upload a new version, go to Special:Upload and use the name of an existing file. You are not shown the "upload new version of this file" link because you are shown as logged out. You are logged out for something your hosting has done. I suspect they are heavily caching files (and detecting them by file extension). MediaWiki sends Vary: cookie headers, so it's the fault of the caching agent.
When added "&foo" at the end of the URL everything works fine, as it should be.
The hosting company made an exception now in their VCL (?) and if i put my MediaWiki installation in the /wiki folder it is working correctly. But as i'm not having the MediaWiki in the /wiki folder i have to change things. When put the whole MW install in a /wiki folder it's working correctly. Think it's their way of editing their VCL exceptions.
(In reply to comment #14) > When put the whole MW install in a /wiki folder it's working correctly. Think > it's their way of editing their VCL exceptions. It sounds like this bug can be closed, then, since this problem isn't in mediawiki. Marking "invalid" since it is caused by the hoster.
Yep, it's simple like that. Thanks for cooperating with this bug-report.