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
publishToConfluence throws exception when uploading attachments in v3.2.0 #1335
Comments
Thanks for reporting this will be fixed in #1333 |
@corradolupo73 In the meantime you could downgrade to version 3.1.2, this worked for me. However there the SVG upload is broken 😄 Waiting for 3.2.1 😊 |
3.2.1 is out just now 😄 @maksymgendin if the SVG upload is broken, do you know the last working version? |
I just tried it, and it's okay! Very well! |
Not sure. WITHOUT SVG upload the version 3.1.2 works for me. The version 3.2.0 (and probably also 3.2.1) is broken due to error reported in #1332, not sure if there the SVG upload is working. Have to check that. |
After mergin #1337 you could give |
@PacoVK I have bad news, at least for me 😞 Just tried
When I open Could this be caused by our corporate firewall? Will now try to reproduce the same request with cURL... But I cannot explain why this works in 3.1.2, for example... |
Hm did you configure a proxy? |
Nope, we're not using a proxy. |
@PacoVK I've found the issue - it's the Seems like it's a firewall issue, it doesn't like when there is a port in the Is the header required? |
@maksymgendin awesome really appreciate that you invest your time here! |
@PacoVK You're always welcome. Thank YOU (and the community of course) for working on this great tool! I do not have a port in my Confluence API URL configuration value set...I assume it's the HTTP client which sets the port (and the |
Ah, now i got you! Okay, i will implement a fix that ensures the |
And while digging in the Client, do you know if there may be negative implications eg in your corporates firewall if i set a custom |
@PacoVK I think it's generally a great idea, maybe also include the version of used DTC in the user agent header. Tried different user agents in my environment, all requests were ok. |
@PacoVK Great work, |
Nice, thanks for the feedback here. I will close this ticket within the upcoming release :) |
Close as completed since 3.2.2 is out now :) |
Works like a charme, thanks @PacoVK! |
Describe the bug
When uploading attachments, e.g., images, using the ConfluenceClient in 3.2.0 via the publicToConfluence task, the following error occurs:
dtcw 0.52 - ##DTCW_GIT_HASH##
docToolchain 3.2.0
OS/arch: pwsh windows x64
Available docToolchain environments: local docker
Environments with docToolchain [3.2.0]: docker
Using environment: docker
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/8.1.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
image: /project/build/html5/images/diag-1d6529118cf5d3043239244bb749a8aa.png
allPages already retrieved
pages retrieved
retrieving page with id 1671036946
found existing page: 1671036946 version 1
page hasn't changed!
Uploading attachment to /rest/api/content/1671036946/child/attachment
FAILURE: Build failed with an exception.
Execution failed for task ':publishToConfluence'.
To Reproduce
Steps to reproduce the behavior:
Install 3.1.0 docToolChain Docker image
docToolchain 3.2.0
OS/arch: pwsh windows x64
Download arc42 template using ./dtcw downloadTemplate
Run ./dtcw publishToConfluence ...
See error
[plantuml, format=png]
....
include::plantuml/documentazione.puml[]
....
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration
The text was updated successfully, but these errors were encountered: