When attempting to attach a file to an issue with a filename that is reasonably long, the attachments panel on the issue page was displaying the wrong information and the link wouldn't work.
We have tracked this down to a discrepancy between a database table design and stored procedure.
The table BugNet_IssueAttachments specifies the FileName field to be 250 characters. But the stored procedure BugNet_IssueAttachment_CreateNewIssueAttachment only allows 100 characters for this parameter.
Updating this to 250 to mirror the table allows files with a filename + GUID length of longer than 100 characters.
We have tracked this down to a discrepancy between a database table design and stored procedure.
The table BugNet_IssueAttachments specifies the FileName field to be 250 characters. But the stored procedure BugNet_IssueAttachment_CreateNewIssueAttachment only allows 100 characters for this parameter.
Updating this to 250 to mirror the table allows files with a filename + GUID length of longer than 100 characters.