Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't view attachments after updating to JIRA Service Management 4.15

Jason Yeung
Contributor
February 8, 2021

Hi,

I recently updated my JIRA to 8.15 and Jira Service Management to 4.15. After the update, the attachments in my issues are no longer accessible. The steps are:

go to the attachments section of an issue:

Attachment_ticket.JPG

 

When I click on the link, I get the following:

Attachment_error.JPG

I could still download the attachment. I was wondering if there's a way to check what could be causing this? It worked fine before the update.

Sincerely,

 

Jason

 

4 answers

1 accepted

0 votes
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2021

Hi @Jason Yeung 

Please check whether these files are present in the folder jira/atlassian-jira/WEB-INF/classes/com/atlassian/jira/web/servlet

ViewThumbnailServlet.class

abstractViewFileServlet.class

ViewAttachmentServlet.class

If not present add it from the previous backup copying each files to the location I have specified.

Please let me know if it solved the issue.

Thanks,

Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2021
Jason Yeung
Contributor
February 9, 2021

Hi @Pramodh M ,

I copied the 3 files from an old backup to the new installation. It didn't fix the problem. I was wondering would I need to restart the JIRA service in order for it to take into effect?

Jason

Jason Yeung
Contributor
February 9, 2021

Hi @Pramodh M ,

I copied the files and restarted the JIRA service. Unfortunately JIRA didn't come up for me. I get the following error:

Restart JIRA2 error.JPG

 

When I removed the 3 files and restarted JIRA service, the site came up file, though the attachments didn't work. My JIRA 8.15 installation didn't contain those 3 files and I copied them from an old backup. It was version 8.5.3. I was wondering if there is something else I could check to get the attachments working?

Jason

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 9, 2021

Have the new installation of 8.15 in new instance somewhere and copy the files and try. This may be the reason.

And also don't forget to disable incompatible apps.

Jason Yeung
Contributor
February 10, 2021

Hi @Pramodh M ,

I installed JIRA 8.15 on a different machine. When I went to C:\Program Files\Atlassian\JIRA\atlassian-jira\WEB-INF\classes\com\atlassian\jira\web\servlet, I found the 3 class files you mentioned are not there. Below is what's in this directory sorted alphabetically:

MissingServlets.JPG

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 10, 2021

Hi @Jason Yeung 

Apologies for the mistake, it should have said LTS Version, which is currently 8.13.3

Here's the link to files, download them have copied to the path if you have installed it on Linux

/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/com/atlassian/jira/web/servlet

In windows you know...

The links to files are here

Thanks,
Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2021

Hi @Jason Yeung 

Did you check with adding files and restarting the server.

Let me know if it solved the issue.

Thanks,

Pramodh

Jason Yeung
Contributor
February 11, 2021

Hi @Pramodh M ,

I tried doing this on our sandbox environment and it worked. Thanks a lot!

I'll need to get approval to make the change on the production environment, but it'll probably work as the JIRA versions are the same for both. (I used the same installation program.).

Sincerely,

Jason

Like • Pramodh M likes this
acast2 November 23, 2021

@Jason Yeung I did this in a sandbox environment as well but it hasn't resolved it for me. I noticed that the image you posted showing the files were not located where @Pramodh M said showed this way for me as well, but there is a "viewfile" folder at the top of that list that does have all 3 files in it.

Being that my existing Jira home and install directories are coming from version 7.6.2 and migrated to 8.20.2 I figured the location change was just part of the new structure for the latest version.

Either way, copying those same files over still didn't work for me.  Any assistance would be appreciated, thanks.

acast2 November 23, 2021

I wanted to add that I downloaded the same 3 files and tried them and still have the same problem.

0 votes
Larry_Tonjes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2022
0 votes
Diego Rivera September 16, 2021 edited

Just for my clarification - is Atlassian omitting code from newer versions which can result in failed in-place upgrades which they advertise as supported?

If so - why are they not at least providing a JAR for these classes that one could deploy to resolve the issue quickly?

Also begs the question of what other pieces of code may have been "omitted", and what their impact may be that we're just not being affected by so egregiously ...

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2021

Hi @Diego Rivera 

This was in Older version, its resolved in latest version and even in LTS latest version.

Thanks,
Pramodh

Diego Rivera September 16, 2021

I have 8.19.0 and it's still affected, verified. I had to put the files in a JAR and put it in the WEB-INF/lib directory via Docker magic.

If you're referring to 8.19.1 - it's available(ish) in Docker Hub already but not tagged consistently so I'm going to wait a few days.

It's a shame it took so long to fix such an egregious mistake, though.

Cheers!

Diego Rivera September 16, 2021 edited

Nope. Spoke too soon.

I can confirm that the container tagged with 8.19.1-jdk11 (which is identical to 8.19.1-ubuntu-jdk11, digest 96a85db0b2cc), available in Docker Hub, is 100% afflicted with this issue.

Cheers.

0 votes
mogavenasan
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 8, 2021

Hi @Jason Yeung,

  1. Have you updated all the installed apps to the latest compatible version?
  2. You can try to use a different browser or Incognito/Private mode to rule out anything to do with the web browser.
  3. If you have a reverse proxy, you might want to bypass the proxy and see if the issue still persists.
Jason Yeung
Contributor
February 9, 2021

Hi @mogavenasan ,

There were some installed apps that are not compatible with JIRA 8.15. I'm waiting for the developer to respond. I tried different browsers and the problem persists.

Jason

mogavenasan
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 9, 2021 edited

You can disable all the installed apps to rule out them; Disabling and enabling apps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.15
TAGS
atlassian, atlassian community, journeys for jira service management, journeys for jsm, eap jsm atlassian, early access program atlassian, early access program journeys atlassian, early access program journeys jira service management, join atlassian eap

Join the Early Access Program (EAP) - Journeys for Jira Service Management 🚪

Journeys is a brand new feature in Jira Service Management that helps you streamline various processes in your organization that may cross multiple departments, such as employee onboarding or off-boarding that require action from different teams. ✨

Join the EAP →
AUG Leaders

Atlassian Community Events