webclipper / web-clipper

For Notion,OneNote,Bear,Yuque,Joplin。Clip anything to anywhere
https://clipper.website
Other
6.12k stars 554 forks source link

Confluence Add Account Issue #1100

Open limex opened 2 years ago

limex commented 2 years ago

Hi, the Binding of a Confluence Accounts is not working.

Steps to reproduce the behavior:

  1. Go to the Settings. Select 'Account' from the left bar. Select 'Bind Account' from the right side of the dialog. A popup opens.
  2. Select 'Confluence' in the Dropdownlist
  3. Add the API Origin in the text box (i.e. https://yoursite.atlassian.net )
  4. Click 'Authentication'
  5. Click 'Space'
  6. Click 'Verify'
  7. See Error 'spaceid is required'
  8. In the develper tools I see the error:
    **Request** URL: https://agilemojo.atlassian.net/rest/api/space
    Request Method: GET
    Status Code: 404 
    Remote Address: 185.166.143.36:443
    Referrer Policy: strict-origin-when-cross-origin
    **Response Headers:**
    atl-traceid: ce1ba9b104ba2100
    content-encoding: gzip
    content-type: text/html
    date: Wed, 03 Aug 2022 06:16:41 GMT
    expect-ct: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/atlassian-proxy", max-age=86400
    nel: {"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction": 0.001}
    report-to: {"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "include_subdomains": true}
    server: globaledge-envoy
    strict-transport-security: max-age=63072000; preload
    vary: Accept-Encoding
    x-content-type-options: nosniff
    x-envoy-upstream-service-time: 102
    x-xss-protection: 1; mode=block

Expected behavior

A field or instruction to add the API Key. Fields to add username and pwd for Confluence

Screenshots

image

information

Additional context

none

DiamondYuan commented 2 years ago

web clipper not support Confluence7.

which version of Confluence do you use?

limex commented 2 years ago

Thanks for your quick answer. I am using the cloud version of confluence. According to https://confluence.atlassian.com/doc/confluence-release-summary-160006346.html this should be 7.19. Is there a chance to simply fix it? If I understand that correctly, then the endpoint for the spaces changed from atlassian.net/rest/api/space to atlassian.net/confluence/rest/api/space. I suppose all other endpoints in the code need also adjustments. Or are there more differences from 6 to 7 "under the hood"?

DiamondYuan commented 2 years ago

There is a big difference between v6 and v7, and support should not be considered for a short time.