atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

confluence remove_content_history(page_id, version_number) method fails from version 3.26.0

Open manoharm28 opened this issue 1 year ago • 3 comments

The method remove_content_history(page_id, version_number) was working fine until the release version 3.25.0. From the version 3.26.0 and newer we are getting below error:

File "/usr/local/lib/python3.10/site-packages/atlassian/confluence.py", line 1371, in remove_content_history self.delete(url) File "/usr/local/lib/python3.10/site-packages/atlassian/rest_client.py", line 371, in delete response = self.request( File "/usr/local/lib/python3.10/site-packages/atlassian/rest_client.py", line 242, in request self.raise_for_status(response) File "/usr/local/lib/python3.10/site-packages/atlassian/confluence.py", line 2780, in raise_for_status raise HTTPError(error_msg, response=response) requests.exceptions.HTTPError: null for uri: https://confluence.sdl.com/rest/api/content/*********/version/1

Thank you.

manoharm28 avatar Sep 15 '22 09:09 manoharm28

Hi @manoharm28 , noted, thanks. Let me check it later. Could you provide the Confluence version also, I will check on my docker env.

gonchik avatar Sep 16 '22 15:09 gonchik

Hi @gonchik Our confluence version is 7.18.2. We are running it inside docker container with image 'python:3' in Jenkins.

Thanks, Manohar

manoharm28 avatar Sep 16 '22 16:09 manoharm28

Hi @manoharm28 , noted. I will try to reproduce on my env soon.

gonchik avatar Sep 16 '22 16:09 gonchik

Updated and released https://github.com/atlassian-api/atlassian-python- api/blob/dbcd26699745829bf1f2c9e9980ed874322eaf3b/atlassian/confluence.py#L1461

gonchik avatar Jan 09 '23 16:01 gonchik

dbcd26699745829bf1f2c9e9980ed874322eaf3b it fixed

gonchik avatar Feb 19 '23 12:02 gonchik