Skip to content

feat: support the base path and the new API prefix in the storage client - #2468

Merged
mykola-mokhnach merged 1 commit into
masterfrom
storage
Oct 7, 2026
Merged

mykola-mokhnach merged 1 commit into
masterfrom
storage

Conversation

@mykola-mokhnach

Copy link
Copy Markdown
Contributor

Storage plugin v3 mounts the routes under the server base path, while v2 always serves them at the server root (see appium/appium#22906). Both versions serve the /appium/storage prefix, plugins older than 1.2.0 only the legacy /storage one.

The client now probes the candidate route roots (base path first, then the server root, for the new prefix and then the legacy one), moving on on 404 only. A route is remembered only after a successful response, so a transient error cannot pin a wrong layout.

The web socket paths returned by the plugin are server-root-relative in all versions, so they are now resolved against the server root rather than appended to the base URL path. The URL helper also passed the authority where the user info is expected, which is fixed as well.

StorageClient.PREFIX now equals /appium/storage.

Storage plugin v3 mounts the routes under the server base path, while
v2 always serves them at the server root (see appium/appium#22906).
Both versions serve the `/appium/storage` prefix, plugins older than
1.2.0 only the legacy `/storage` one.

The client now probes the candidate route roots (base path first, then
the server root, for the new prefix and then the legacy one), moving on
on 404 only. A route is remembered only after a successful response, so
a transient error cannot pin a wrong layout.

The web socket paths returned by the plugin are server-root-relative in
all versions, so they are now resolved against the server root rather
than appended to the base URL path. The URL helper also passed the
authority where the user info is expected, which is fixed as well.

`StorageClient.PREFIX` now equals `/appium/storage`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mykola-mokhnach
mykola-mokhnach merged commit 61e20f5 into master Oct 7, 2026
12 checks passed
@mykola-mokhnach
mykola-mokhnach deleted the storage branch October 7, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants