I am trying to attach a drm function.
When uploading a file, a servlet filter is registered in atlassian-plugin.xml to create a plugin.
When the servlet path in "doFilter" is "/plugins/drag-and-drop/upload.action", it was confirmed that the file was created using a stream.
Using the code below, until chain.doFilter is executed, the following WARN occurs, and the icon of the upload file is not created.
Is there any way to prevent WARN from happening?
If WARN does not occur, can the icon of the uploaded file be created?
AttachmentResource resource = new InputStreamAttachmentResource(new FileInputStream(file), filename_org, mimeType, file.length(), "");
resource1 = new InputStreamAttachmentResource(new FileInputStream(file), filename_org, mimeType, file.length(), "");
Attachment attachment = page.getAttachmentNamed(filename_org);
this.fileUploadManager.storeResource(resource, page);
chain.doFilter((ServletRequest)attachmentRequestWrapper, httpResponse);
return;
The WARN is as follows.
[INFO] [talledLocalContainer] 2020-05-25 16:49:51,982 WARN [http-nio-1990-exec-8] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
[INFO] [talledLocalContainer] ->[null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1304699462)
Hello @gwakss !
After reading your question, I believe that you will be able to find very capacitated input for your development here in our Developer Community:
Thanks for reaching out!
thank you for telling me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.