There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-3e928f90-0104-4bc0-bb93-7e7369d809ea CONFLUENCE-441 Open

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

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-4b55d847-3950-460b-941f-8dd00f977103 Changes by Raphaël Jakse on 07/Nov/25 11:09
 
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.


For such common spaces that are likely to exist, we could require further checks to let the fallback apply (for instance, we could check for a Code sub space, or for a page we know comes from the FAQ application, and deny the fallback in this case)