Confluence loosing png attachments
Asked by KPAH:

I got a really frustrating issue with attachments.

PNG files start to disappear from Confluence pages. When you edit a page, there's no idication of an embedded image anymore, however, when viewing the source of the page the links are there.

Given the idiotic way confluence stores files in filesystem mode, I may be wrong, but from what it seems the numbered directory containing the attachment is missing from /attachments folder and the attachment table in the database also has no entries for the filenames.

Both logs have no problems detected.

This seem to happen only to .png images, and from the filename like image-date-something.png, they were copy-pasted to the page from elsewhere.

I doubt the attachments were deleted by the users.

I'm having trouble selling the ugly solution to the customers beside that, and now with Confluence deleting pictures from people's work I spent so much time convincing...well, I'm in hot liquid, and that is not water.

Why does this piece of crap deletes pictures and how to stop that?


Answers:
author: KPAH
body: I think I found the problem. Some genius at Atlassian decided it is neat to add : separate times to the name of the png when you copy paste an image. Windows filenames cannot have this symbol, so most of the time it is stored in that file hiearcy Confluence is having on the drive, but probably at some point the file is temporarily saved to disk, and windows just can't save it. Thus we get a dev/NULLed attachment.


author: KPAH
body: and we pay $8k/year for this...

comments: author: PeterKoczan
body: Hi,

I suggest that you open a support ticket at [http://support.atlassian.com](http://support.atlassian.com,), where you can share your logs and instance information with one of our engineers who will be happy to assist you. Please refer to [this page](https://confluence.atlassian.com/display/DOC/Troubleshooting+Problems+and+Requesting+Technical+Support) for more information on requesting technical support for Confluence.

Kind regards,

Peter


author: PeterKoczan
body: Hi,

I am really sorry to hear that you have such an experience with Confluence, however let me assure you that this is surely not the intended way the product should work.

I suspect the problem to be caused by a third-party plugin, but the case itself surely needs further investigation, thus first check if you have any non-Atlassian plugin installed that deals with attachments (a good catch would be the Attachment Checkout Plugin) and if possible, disable all of them and see if the problem comes back.

Otherwise, it would be advisable to open a support request at <http://support.atlassian.com> where we could analyse your logs and setup to find possible causes.

Cheers,

Peter

comments: author: KPAH
body: I know that Jira, another Atlassian quality product, have problems with database indexing. Can Confluence suffer from the same desease?


author: PeterKoczan
body: Hi,

It is possible that specific Confluence versions have issues with indexing, however I am unaware of any general issue concerning JIRA database indexing. Could you link the source of this information or a bug report so that I may be able to find additional data on it?

Regards,

Peter


Tags: image