When the Confluence space of a document is not found by any resolver, the default resolver will attempt to return the root space of the document. But the current code uses the context document and not the document passed in parameter. This is probably due to a brain fart. Unfortunately, this code was also untested. This was discovered by reading the code, not by anyone knowingly running into this issue. |