the url of attached file occurrs HTTP ERROR 404

Jaeyong Shim November 16, 2023

I got  a url of attached file from change log of an issue on Jira server.

And the attached file name has a space char.

 

The filename is "OS Log.zip".

and the url is "http://base_url/secure/attachment/142021/OS+Log.zip"

But, when I access the url, my broswer say that "No Webpage was found for the web address:"

 

How can i resolve this problem?

Is it depend on Java server configuration?

 

I need help from jira gurus !

Thanks,

1 answer

0 votes
Nic Brough -Adaptavist-
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.
November 17, 2023

Welcome to the Atlassian Community!

This usually means that you have got an invalid URL.  When you say "base_url" in that URL, have you replaced it with the actual location of your Jira? 

 Or is your base URL really set to "HTTP://base_url"?  If it is, then you'll need to correct that in the global settings.

If, for example, you looked at a Cloud system (where the base URL is set by Atlassian), you might have a URL like https://aclsandbox.atlassian.net/secure/142021/OS+Log+zip, in which case the base URL in the general settings should be set to https://aclsandbox.atlassian.net

Jaeyong Shim November 19, 2023

my base url setting is OK.

Only in the case of the attached filename has space character, we cannot reach the file by the url.

Instead, when we access the attached file like the url which file name is encoded  and the space character is expressed by %20, we can access the file directlry. 

http://base_url/secure/attachment/142021/OS%20Log.zip

is there any referece to understand this phenomenon?

thanks in advance.

Nic Brough -Adaptavist-
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.
November 20, 2023

Yes, URLs cannot contain spaces, it's nothing to do with Atlassian, it's the way the internet works.

If you want to use spaces (and a lot of other special characters) in URLs, they have to be encoded.  That's why %20 works - it's space, encoded.

Jaeyong Shim November 20, 2023

but some other jira server allows '+' charater instead of space character.

so the url below works on them.

http://base_url/secure/attachment/142021/OS+Log.zip

 

My jira server does not work when I try to access with the url http://base_url/secure/attachment/142021/OS+Log.zip. but it works when use the  encoded url like this http://base_url/secure/attachment/142021/OS%20Log.zip.

 

How can I make configuration we can access the attachment with the url using '+' character ?

thanks

Nic Brough -Adaptavist-
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.
November 20, 2023

That's not relevant here.  The + substitution is done within the application, not the URL.

You are trying to reach a URL that has a space in it.  Spaces are not valid in URLs, so you have to encode them if you want your browser or program to reach it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events