Attachments are showing up in bin directory on RHEL

Still need help?

The Atlassian Community is here for you.

Ask the community

   

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Uploaded attachments to Confluence pages are being saved to Confluence's /opt/confluence/X/bin directory.

Environment

  • Confluence Data Center 8.1.3

  • Confiforms 3.5.5

Diagnosis

Run the stat command on the server to get full information on the last changes on the file system level to the attachment

Example output
$ stat FileName.pdf
File: FileName.pdf
Size: x Blocks: x IO Block: x regular file
Device: x/x Inode: x Links: x
Access: (0644/rw-rr-) Uid: (x/ cedt) Gid: (x/ cedt)
Context: system_u:object_r:unlabeled_t:s0
Access: 2024-02-18 01:20:45.259875980 -0400
Modify: 2024-02-18 01:20:45.126874120 -0400
Change: 2024-02-18 01:20:45.126874120 -0400
Birth: -
(...)


Around the same time, in Confluence's access log files, we can see the following entry:

conf_access.log
[18/Feb/2024:01:20:37 -0400] username Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 IP_Address POST POST /confluence/ajax/confiforms/applyrules.action?fld=priority HTTP/1.0 151 200 121 http-nio-8080-exec-33

And on the application logs:

atlassian-confluence.log
2024-02-18 01:20:55,480 WARN [http-nio-8080-exec-51 url: /confluence/ajax/confiforms/trysave.action; user: username] [internal.content.collab.ReconcileReferringContentTask] getShouldIncludeOwnContent Could not find shouldIncludeOwnContentMap for Content ID x but will reconcile anyway
 -- page: x | referer: BaseURL/confluence/pages/viewpage.action?spaceKey=KEY&title=NAME | traceId: xxxxx | userName: username | action: trysave | url: /confluence/ajax/confiforms/trysave.action

Cause

There is a known issue with Confiforms on version 3.5.5 that affects the behavior of the attachments on Confluence and causes them to be written in the bin directory.

Solution

Upgrade Confiforms to the latest version available.

Last modified on Aug 2, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.