Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Asset name with spaces

deepakt78632031
Level 1
Level 1

Can I upload any asset name with spaces? Would this cause any problems?

1 Accepted Solution
Vish_dhaliwal
Correct answer by
Employee
Employee

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

View solution in original post

7 Replies
deepakt78632031
Level 1
Level 1

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_dhaliwal
Correct answer by
Employee
Employee

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

View solution in original post

deepakt78632031
Level 1
Level 1

Does this mean I need install any service packs?

Vish_dhaliwal
Employee
Employee

What is your AEM version?

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

deepakt78632031
Level 1
Level 1

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
Employee
Employee

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