Preserve Confluence Server REST URL compatibility - #1654
Merged
gonchik merged 1 commit intoAug 17, 2026
Merged
Conversation
hkwi
marked this pull request as draft
August 17, 2026 01:54
hkwi
force-pushed
the
fix/confluence-server-backward-compatibility
branch
from
August 17, 2026 02:26
ef4310c to
cd2108c
Compare
hkwi
marked this pull request as ready for review
August 17, 2026 02:27
Member
|
@hkwi thanks |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1654 +/- ##
==========================================
+ Coverage 59.82% 59.92% +0.09%
==========================================
Files 104 104
Lines 17316 17334 +18
Branches 1797 1801 +4
==========================================
+ Hits 10360 10387 +27
+ Misses 6524 6519 -5
+ Partials 432 428 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The ConfluenceServer class in 5.0.0 changed the client to append the configured API root and version to its base URL. Existing calls that already pass paths such as
rest/api/content/...therefore construct URLs such as/rest/api/1.0/rest/api/content/....This breaks the established Confluence Server REST API URL used by on-premises installations. It also incorrectly places non-REST browser endpoints, such as PDF and Word exports, below the REST API root.
Changes
ConfluenceServerbase URL, matching 4.x behavior.rest/api/...paths, experimental REST paths, attachment download links, and browser/UI paths unchanged.api_rootandapi_versionvalues to unrooted REST resources without duplicating rooted paths.post/put/deletepaths, explicit API versions, and PDF/Word export paths.This keeps the Cloud/Server class split introduced in 5.x while restoring compatibility for existing Confluence Server clients.
Testing