In our app for Jira data center version 9.5.0 and 9.6.0 images are broken. As we internally using FileSystemAttachmentStore class which is now removed.
FileSystemAttachmentStore fileSystemAttachmentStore = ComponentAccessor
.getComponent(FileSystemAttachmentStore.class);
File attachmentFile = fileSystemAttachmentStore.getAttachmentFile(key);
Please suggest alternate approch for above code.
Randy
March 7, 2023, 12:31am
2
Hi Pravin,
Sorry for not seeing this earlier. We made these changes to jira-core as a part of our efforts to support storing attachments outside of the shared home directory in object stores like Amazon S3 . This means we can no longer provide a Java File
to attachments. Instead, use the AttachmentManager
to access attachment data directly with the AttachmentManager#streamAttachmentContent
method.
If you have any more questions, feel free to ask here, or send me a direct message.
Cheers,
Randy
Sr Software Engineer - DC Cross Product