Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wiki pages doesn't work on Confluence 7.9.3 Cloud version #3

Open
SebokTibor opened this issue May 12, 2021 · 0 comments
Open

Add Wiki pages doesn't work on Confluence 7.9.3 Cloud version #3

SebokTibor opened this issue May 12, 2021 · 0 comments

Comments

@SebokTibor
Copy link

Hi Guys,

we've been trying to create new pages via the plugin without any success, the plugin task altough was completed, no page has been created on Confluence side.

We managed to add some new lines to the plugins code that made page creation successful.

Below you can see the code (HttpRequestPlus.py), the new lines are in bold:

def buildRequest(self, method, context, body, contentType, headers, quotePlus):
url = self.quote(self.createPath(self.params.getUrl(), context), quotePlus)

method = method.upper()

if method == 'GET':
request = HttpGet(url)
elif method == 'HEAD':
request = HttpHead(url)
elif method == 'POST':
request = HttpPost(url)
OUrl=self.params.getUrl()
request.addHeader('Origin', OUrl)

request.setEntity(StringEntity(body))
elif method == 'PUT':
request = HttpPut(url)
request.setEntity(StringEntity(body))
elif method == 'DELETE':
request = HttpDelete(url)
elif method == 'PATCH':

Thanks,

BR

Tibor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant