This issue has been created
 
 
Confluence / cid:jira-generated-image-avatar-3d24da26-3abb-4326-aaf3-f7ae1e2f03d5 CONFLUENCE-441 Open

ConfluenceSpaceResolver#getSpaceByKey("FAQ") incorrectly returns the FAQ application's space

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c831bcdb-4819-40ef-82c0-818426b9e9ea Raphaël Jakse created this issue on 28/Apr/25 17:10
 
Summary: ConfluenceSpaceResolver#getSpaceByKey("FAQ") incorrectly returns the FAQ application's space
Issue Type: cid:jira-generated-image-avatar-3d24da26-3abb-4326-aaf3-f7ae1e2f03d5 Bug
Affects Versions: 9.82.8
Assignee: Unassigned
Components: Resolvers
Created: 28/Apr/25 17:10
Priority: cid:jira-generated-image-static-major-4d227241-c49f-4d36-a67b-8e1cfe02de59 Major
Reporter: Raphaël Jakse
Description:

We have a fallback that returns the reference xwiki:SPACE for any requested SPACE in ConfluenceSpaceResolver#getSpaceByKey(String) if no resolver found any space and the xwiki:SPACE.WebHome exists.

This is to handle Confluence imports where the "Store Confluence Metadata" parameter is disabled. (and thus ConfluencePageClass objects are missing).

This is an optimistic guess but it is arguably incorrect to return the space of (well-known) apps. Maybe we should have a hardcoded list of spaces which we don't return because we know that they are not Confluence spaces.

At the same time, maybe the user didn't install the FAQ application and did migrate a Confluence space named FAQ so this is a tough problem to solve.

At some point we may need to drop the fallback, at the risk of breaking users.