You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: