Skip to content

wms_service_cache should use complete url - #3176

Open
JanEisermann wants to merge 15 commits into
Open-MSS:developfrom
JanEisermann:wms_service_cache_2841
Open

wms_service_cache should use complete url#3176
JanEisermann wants to merge 15 commits into
Open-MSS:developfrom
JanEisermann:wms_service_cache_2841

Conversation

@JanEisermann

Copy link
Copy Markdown
Collaborator

Purpose of PR?:

Fixes #2841

Does this PR introduce a breaking change?
use of a slugify version of the full url instead of the base_url in the wms_service_cache

If the changes in this PR are manually verified, list down the scenarios covered::
tests succeed, not manually verified

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Does this PR results in some Documentation changes?
If yes, include the list of Documentation changes

Checklist:

  • Bug fix. Fixes #
  • New feature (Non-API breaking changes that adds functionality)
  • PR Title follows the convention of <type>: <subject>
  • Commit has unit tests

@ReimarBauer ReimarBauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment

Comment thread mslib/utils/service_manager.py Outdated
JanEisermann and others added 2 commits September 2, 2026 13:12
Slugifying the normalized url collapses all url separators into "-", so
distinct services map onto the same key, e.g. "http://a.com:1/wms" and
"http://a.com/1/wms" both became "http-a-com-1-wms". The same happened
for query parameters versus path elements. The normalized url is a fine
dict key on its own, so keep it as is.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Cover the urls which collided when the key was slugified (port versus
path element, host boundary, query parameters versus path) as well as
the urls which have to share a key (GetCapabilities parameters, order of
the remaining parameters, case of scheme and host) and the cache lookups
of WMSServiceManager built on them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comment thread mslib/utils/service_manager.py Outdated

:copyright: Copyright 2025 Reimar Bauer
:copyright: Copyright 2025-2026 by the MSS team, see AUTHORS.
:license: APACHE-2.0, see LICENSE for details.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a new test module,

©️ Copyright 2026 Jan Eisermann

and there are currently no other contributions? by the team, or?

ReimarBauer and others added 10 commits September 7, 2026 08:33
* added linux-aarch64

* missing platform added

* readded 14
Added parameter and tests to _determinate_filename to fit its usage
* fix: serve chat attachments from a fixed URL namespace

The relative path stored for a chat attachment was built from the *name*
of the configured UPLOAD_FOLDER directory, while the chat blueprint serves
attachments from the fixed route /uploads/<op_id>/<filename>. With a
non-default UPLOAD_FOLDER (e.g. .../uploadshaha) the client therefore
requested /uploadshaha/<op_id>/<filename>, got a 404 and an uploaded image
was never shown, even though the file was stored correctly.

Introduce ATTACHMENTS_URL_PREFIX and use it both for the route and for the
path handed to the client, so the URL no longer depends on the directory
name. The path is now also built with PurePosixPath, so it uses forward
slashes on Windows as well.
Bumps [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) from 0.10.0 to 0.10.2.
- [Release notes](https://github.com/prefix-dev/setup-pixi/releases)
- [Commits](prefix-dev/setup-pixi@a09b624...d3f436a)

---
updated-dependencies:
- dependency-name: prefix-dev/setup-pixi
  dependency-version: 0.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [zgosalvez/github-actions-ensure-sha-pinned-actions](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions) from 5.0.5 to 5.0.7.
- [Release notes](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/releases)
- [Commits](zgosalvez/github-actions-ensure-sha-pinned-actions@3db98c0...c5fc58b)

---
updated-dependencies:
- dependency-name: zgosalvez/github-actions-ensure-sha-pinned-actions
  dependency-version: 5.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.7 to 2.3.8.
- [Release notes](https://github.com/coverallsapp/github-action/releases)
- [Commits](coverallsapp/github-action@5cbfd81...8d6379e)

---
updated-dependencies:
- dependency-name: coverallsapp/github-action
  dependency-version: 2.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

wms_service_cache should use complete url

2 participants