org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip

JIRA | Kevin Rancka | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When I try to export a whole space I sometimes get a 403 error but sometimes it works. Here the log output: u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "mreliabilityfleet" --file "exportSpaceHtml.zip" --exportType "HTML" -v Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? Space exported with url: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-133651-113/Confluence-space-export-133843-114.html.zip to file: exportSpaceHtml.zip 62461df693 logged out. u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "SDG" --file "exportSpaceHtml.zip" --exportType "HTML" -v !180 Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? e0292d11bb logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)

    JIRA | 1 year ago | Kevin Rancka
    org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip
  2. 0

    When I try to export a whole space I sometimes get a 403 error but sometimes it works. Here the log output: u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "mreliabilityfleet" --file "exportSpaceHtml.zip" --exportType "HTML" -v Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? Space exported with url: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-133651-113/Confluence-space-export-133843-114.html.zip to file: exportSpaceHtml.zip 62461df693 logged out. u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "SDG" --file "exportSpaceHtml.zip" --exportType "HTML" -v !180 Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? e0292d11bb logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)

    JIRA | 1 year ago | Kevin Rancka
    org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip
  3. 0

    We have been unable to export spaces using the CLI, continually getting 403 errors. CLI appears to be able to login and request the space export and the URL it is getting a 403 on does return a valid space export when copying and pasting the url into a browser with a logged in confluence session. Attempting to download whilst not logged in to confluence does return a 403 error from tomcat. Our confluence is behind a apache proxy, but connecting directly to the tomcat port yielded the same results. {code:java} java -jar `dirname $0`/lib/confluence-cli-5.1.0.jar --server http://127.0.0.1:8090 --user "snip" --password "snip" --action exportSpace --space "AE" --file "test.pdf" --exportType "PDF" --connectionTimeout 0 -v Server address: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 Successful login to: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 by user: snip. Response code: 200, message: OK, url: http://127.0.0.1:8090/rest/org.swift.confluence.cli/latest/validatelicense? 4c5be18477 logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {code} It looks like the command line tools is logging out of confluence before it downloads the export? This is affecting all spaces, and all the different types of exports.

    JIRA | 1 year ago | Peter Modica
    org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We have been unable to export spaces using the CLI, continually getting 403 errors. CLI appears to be able to login and request the space export and the URL it is getting a 403 on does return a valid space export when copying and pasting the url into a browser with a logged in confluence session. Attempting to download whilst not logged in to confluence does return a 403 error from tomcat. Our confluence is behind a apache proxy, but connecting directly to the tomcat port yielded the same results. {code:java} java -jar `dirname $0`/lib/confluence-cli-5.1.0.jar --server http://127.0.0.1:8090 --user "snip" --password "snip" --action exportSpace --space "AE" --file "test.pdf" --exportType "PDF" --connectionTimeout 0 -v Server address: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 Successful login to: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 by user: snip. Response code: 200, message: OK, url: http://127.0.0.1:8090/rest/org.swift.confluence.cli/latest/validatelicense? 4c5be18477 logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {code} It looks like the command line tools is logging out of confluence before it downloads the export? This is affecting all spaces, and all the different types of exports.

    JIRA | 1 year ago | Peter Modica
    org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf

    Root Cause Analysis

    1. org.swift.common.cli.CliClient$ClientException

      Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip

      at org.swift.common.cli.CliUtils.copyUrlToFile()
    2. org.swift.common
      CliUtils.copyUrlToFile
      1. org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223)
      1 frame
    3. org.swift.confluence
      ConfluenceClient.handleRequest
      1. org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234)
      2. org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923)
      2 frames
    4. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:433)
      2 frames
    5. org.swift.confluence
      ConfluenceClient.main
      1. org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)
      1 frame