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
Describe the bug
When uploading attachments, e.g., images, using the new ConfluenceClient in 3.1.0 via the publicToConfluence task, the following error occurs. This affects the usage of v1 and the new v2 Api versions of the ConfluenceClient.
> Task :publishToConfluence FAILED
FAILURE: Build failed with an exception.
* Where:
Script '/home/dtcuser/docToolchain/scripts/publishToConfluence.gradle' line: 43
* What went wrong:
Execution failed for task ':publishToConfluence'.
> No such property: MultipartEntityBuilder for class: groovyx.net.http.HTTPBuilder$RequestConfigDelegate
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 26s
4 actionable tasks: 2 executed, 2 up-to-date
To Reproduce
Steps to reproduce the behavior:
Install 3.1.0 docToolChain Docker image
Download arc42 template using ./dtcw downloadTemplate
Run ./dtcw publishToConfluence ...
See error
Expected behavior
The publishToConfluence task shouldn't throw an error when uploading attachments.
Configuration
docToolchain version: 3.1.0
OS: MacOS Sonoma
Relevant SDK Versions JDK 11
Atlassian Confluence: Confluence Cloud
Just an uneducated guess (after skimming the code): in the recent merge #1226, the ConfluenceClient seems to miss some import statements, e.g., for MultiPartEntityBuilder and HttpMultipartMode:
@sinkovec thanks for reporting, that slipped through and will be released soon. You are absolutely right with the missing imports. i can reproduce and found the issue, there is also another bug that needs to be fixed
Describe the bug
When uploading attachments, e.g., images, using the new ConfluenceClient in 3.1.0 via the publicToConfluence task, the following error occurs. This affects the usage of v1 and the new v2 Api versions of the ConfluenceClient.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The publishToConfluence task shouldn't throw an error when uploading attachments.
Configuration
Just an uneducated guess (after skimming the code): in the recent merge #1226, the ConfluenceClient seems to miss some import statements, e.g., for MultiPartEntityBuilder and HttpMultipartMode:
docToolchain/core/src/main/groovy/org/docToolchain/atlassian/clients/ConfluenceClient.groovy
Lines 58 to 59 in cc78e99
The text was updated successfully, but these errors were encountered: