I wanted to exchange an attachment on the Jira Server.
So I just get the path of the attachment , then deleted it and put a new file
with the same name and same path on the server again.
But when I requested this attachment it was corrupted.
So the only solution was to really delete the attachment and then create a new attachment with this file.
So I really wondering why the attachment was corrupted when I just exchanged the file.
The attachments attributes are stored in the database. So if you replace the file the application will not recognize it as the same file since the makeup of the file has changed.
Ok. Makes sense. But I do not put a corrupted file on the server. But why is it corrupted when I request an issue with the attachments. Does Jira just return a different file all of a sudden ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not file type. If I remember it is size and other information. The biggest thing that most likely is the issue is I think that there is a binary string that needs to match.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But the big question. Why is the file corrupted. I 100% put a clean file there. So maybe Jira detects file attributes changed without its knowledge so corrupts the file and returns it. Just an assumption.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe if the attributes do not match then you are correct the application determines it is corrupt. Even if the file is ok on the files server the application is doing a compare on the file load so the application is making the call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.