Asset name with spaces | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vish.dhaliwal

It should be okay. However, there were few issues identified because of the space present in the asset name, but those fixes are backported to 6.4 and 6.5.

Regards,

Vishu

7 replies

deepakt78632031
December 6, 2019

For instance, if the asste name is "abc def.png", Is this okay to upload as is, or should I be changing the name?

vish.dhaliwalAdobe EmployeeAccepted solution
Adobe Employee
December 6, 2019

It should be okay. However, there were few issues identified because of the space present in the asset name, but those fixes are backported to 6.4 and 6.5.

Regards,

Vishu

Adobe Employee
December 6, 2019

Check the naming conventions here: Naming conventions for assets

deepakt78632031
December 6, 2019

Does this mean I need install any service packs?

Adobe Employee
December 6, 2019

What is your AEM version?

It is recommended to be always on the latest service pack to avoid running into known issues.

deepakt78632031
December 6, 2019

We are on 6.4.4. However I am worried about any indexing challenges we might get with it.

We ran into a recent issue of resource resolver and Externalizer being used in the same code and they are encoding the path twice. So "abc def.png" is becoming "abc%2520def.png" instead of "abc%20def.png". Do you think that is an issue with code or could possibly be because of the spaces?

Note : We have a lot of assets with spaces? Should we consider renaming them?

sunjot16
Adobe Employee
Adobe Employee
December 6, 2019

You can have assets with spaces in their names.

As far as %2520 is concerned,

The common space character is encoded as %20 . The % character is encoded as %25.

The way you get %2520 is when your url already has a %20 in it, and gets urlencoded again, which transforms the %20 to %2520.

https://stackoverflow.com/questions/16084935/a-html-space-is-showing-as-2520-instead-of-20

As Vish.dhaliwal recommended, you should install latest SP to avoid running into known issues. You can find it here:

AEM 6.4 Service Pack Release Notes