Skip to content

Commit 2ad5490

Browse files
committed
publisher: drop space key check on connection
This extension performs a series of little checks when starting a first connection to ensure users are indeed talking to a Confluence instance. This is to help rule our misconfigured sites or dealing with proxy issues. One check performed used the configured key value and sanity checked it against what Confluence reported the key was as well. While functional for some time, Confluence Cloud now appears to replace the key value from a reported space key to a new system key. This causes the checks to fail, preventing publishing. To help alleviate the issue, we will not longer perform a key check. Signed-off-by: James Knight <[email protected]>
1 parent 873a100 commit 2ad5490

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sphinxcontrib/confluencebuilder/publisher.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,6 @@ def connect(self):
170170
msg = 'server did not provide an expected response; missing entries'
171171
raise ConfluenceBadServerUrlError(server_url, msg)
172172

173-
detected_key = rsp['key']
174-
if detected_key != self.space_key:
175-
msg = (
176-
'server did not provide an expected response; '
177-
f'bad space key match; {detected_key} != {self.space_key}'
178-
)
179-
raise ConfluenceBadServerUrlError(server_url, msg)
180-
181173
# track required space information
182174
self.space_display_name = rsp['name']
183175
self.space_id = rsp['id']

0 commit comments

Comments
 (0)