Expand my Community achievements bar.

SOLVED

Cannot delete pages starting with number

Avatar

Former Community Member

Hi,

CQ 5.6 is allowing to create page starting with number such as 1234abc.html, but we are not able to delete the page. Is there hotfix available for this issue?

-Punit Jindal

1 Accepted Solution

Avatar

Correct answer by
Level 3

Alex_Popov wrote...

Hello,

Could you please provide more details?

You can use http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/util/ISO9075.html#encodePath%28java.lang.... to encode your path which starts with numbers.

 

I guess if you are able to rename file with move command to files which hasn't number or not start with number. Then you should be able to delete it easily.

View solution in original post

4 Replies

Avatar

Level 4

Hi,

I tried the same in 5.6 i'm able to delete it successfully.

There might be some other issue.

Please include the complete error log, which you get when trying to delete the page.

Avatar

Level 4

Hello,

Could you please provide more details?

You can use http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/util/ISO9075.html#encodePath%28java.lang.... to encode your path which starts with numbers.

Avatar

Correct answer by
Level 3

Alex_Popov wrote...

Hello,

Could you please provide more details?

You can use http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/util/ISO9075.html#encodePath%28java.lang.... to encode your path which starts with numbers.

 

I guess if you are able to rename file with move command to files which hasn't number or not start with number. Then you should be able to delete it easily.

Avatar

Former Community Member

Hi Alex,

From siteadmin I can add a page say, /content/{site_name}/us/en/member/1234asd. After adding when I try to delete the page from siteadmin using delete button, I get a error message Error while deleting: /content/{site_name}/us/en/member/1234asd

This works fine when page name doesnt start with a number.