Unable to upload attachments with REST API if issue key contains numbers

Description

Using command:
curl D -k -u [username]:[password] -X POST -H "X-Atlassian-Token: nocheck" -F "file=@[filepath]" https://ServerURL/rest/api/2/issue/[issueid]/attachments

will hit NPE if issue key contains numbers

Environment

None

Assignee

Victor Tay

Reporter

Chia Xin Fang

Labels

None

Fix versions

Affects versions

Priority

Major
Configure