Hello,
This is for JIRA version 8.5.0. There appears to be a bug with the REST remotelink endpoint.
I am posting the following JSON body to try to create a new remote link:
{
“object”: {
"url": "http://examplehost.com/abc/abc-2921/DxDiag_vb19041--[Code43]REPRO.txt",
"title": "DxDiag_vb19041--[Code43]REPRO.txt (12122019145855)"
}
}
And the response is: 400 Bad Request
{
"errorMessages": [],
"errors": {
"url": "Invalid 'URL'. Make sure you include the full URL (e.g. http://www.google.com)."
}
}
That URL is a working valid URL. I think the URL validation logic is incorrect, it seems to be too stringent.
If I remove “–[Code43]” from the URL, the POST remotelink will work successfully.
However, the entire URL “http://examplehost.com/abc/abc-2921/DxDiag_vb19041--[Code43]REPRO.txt” is a working URL – why is it considered invalid?
Thanks,
victor