Incorrect content type set for uploaded files in Confluence

Dmitry Andrejev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2013

I've clicked Write a comment ... at bottom of the page and then dragged-in a file named testing_transition.patch into the editor.

File was uploaded and link was added to the editor, however in the database in ATTACHMENTS table CONTENTTYPE column was set to application/x-upload-data instead of text/plain, which is indicated in confluence-install/confluence/WEB-INF/classes/mime.types file.

Also it seems, that confluence provided mime.types file is very small comparing to one, provided in CentOS installation.

3 answers

1 accepted

1 vote
Answer accepted
Daniel Borcherding
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

Hello Dimitry,

Can you clarify what version of Confluence you are using?

We have the following bug that deals with an earlier version of Confluence (3.1)

https://jira.atlassian.com/browse/CONF-18951

That seems to suggest that there is a problem with the mime types when performing a drag and drop upload. Are your results different if you do not drag and drop?

I would like a chance to try to replicate this behavior on my test machine. If later than 3.1 we may be seeing a regression of this earlier bug.

Dmitry Andrejev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2013

I'm using Confluence 4.3.6 and this issue was confirmed by Attlasian support and bug report https://jira.atlassian.com/browse/CONF-27969 was created.

0 votes
Renan Battaglin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2013

Hi Dmitry,


Can you confirm what is the consequence in Confluence of having the wrong mimetype?

Are you having to download the patch rather than view it in the browser?


Cheers,

Renan

Dmitry Andrejev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

Yes, because of incorrect mime content type detected patch is downloaded instead of being shown directly in browser.

0 votes
William Zanchet [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2013

Hi Dmitry,

Yes, just to let the community to know, that we created a bug report for it, as you can see here:

* https://jira.atlassian.com/browse/CONF-27969

Cheers,

WZ

Dmitry Andrejev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2013

Still same problem in Confluence 5.2

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events