Skip to content

Fix COG and FlatGeobuf layers support params for protected storage#12179

Merged
allyoucanmap merged 2 commits intogeosolutions-it:masterfrom
stefanocudini:fix-12162-cogs-flatgeobuf-from-protected-storage
Mar 31, 2026
Merged

Fix COG and FlatGeobuf layers support params for protected storage#12179
allyoucanmap merged 2 commits intogeosolutions-it:masterfrom
stefanocudini:fix-12162-cogs-flatgeobuf-from-protected-storage

Conversation

@stefanocudini
Copy link
Copy Markdown
Member

@stefanocudini stefanocudini commented Mar 27, 2026

Fix #12162

  • fix cog catalog sugin security params
  • new function setSecurityParams
  • added unit test for setSecurityParams
  • secure params in 3D layers
  • fix tests SecurityUtils

Description

In short, in cases of datasets using custom rules in the requestsConfigurationRules section of localConfig.json, the URL parameters for resource addresses corresponding to COG and FlatGeobuf files were not being passed. See the issue for an example of rules to use for testing.

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

Fix #12162

What is the current behavior?

#

What is the new behavior?
A new method setSecurityParams has been added to avoid code replication that automatically appends parameters to the URL when necessary. In cases where no rules exist, the original URL is used

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

See the linked issue for bug reproducing details.
Geonode-client porting is required

fix cog catalog sugin security params

new function setSecurityParams

restore config

unit test for setSecurityParams

securel params in 3d layers

fix test SecurityUtils
Comment thread web/client/api/FlatGeobuf.js Outdated
Comment thread web/client/components/map/cesium/plugins/COGLayer.js Outdated
Comment thread web/client/components/map/cesium/plugins/FlatGeobufLayer.js Outdated
Comment thread web/client/components/map/openlayers/plugins/COGLayer.js Outdated
Comment thread web/client/components/map/openlayers/plugins/FlatGeobufLayer.js Outdated
Comment thread web/client/utils/cog/LayerUtils.js Outdated
Comment thread web/client/utils/SecurityUtils.js Outdated
@stefanocudini stefanocudini force-pushed the fix-12162-cogs-flatgeobuf-from-protected-storage branch from 8e0d3ce to 22e6bba Compare March 31, 2026 09:36
@allyoucanmap allyoucanmap merged commit 4739fdd into geosolutions-it:master Mar 31, 2026
12 checks passed
@allyoucanmap
Copy link
Copy Markdown
Contributor

@ElenaGallo please test this fix on dev and let us know when we can backport, thanks

@offtherailz
Copy link
Copy Markdown
Member

Successfully created backport PR for 2026.01.xx:

tdipisa pushed a commit that referenced this pull request Apr 10, 2026
…rage (#12179) (#12251)

(cherry picked from commit 4739fdd)

Co-authored-by: Stefano Cudini <stefano.cudini@gmail.com>
dsuren1 added a commit to anup39/MapStore2 that referenced this pull request Apr 16, 2026
…log_refactor_genode_int_11930

* commit 'de55770d13eb703b5b6cfe31ae55f38fea0b9fcf':
  Fix geosolutions-it#12146: ArcGIS support for FeatureService (geosolutions-it#12235)
  geosolutions-it#12094: Fix dropdown menu overflow when adding links to text widget in TextEditor (geosolutions-it#12260)
  geosolutions-it#12207: Fix - ScaleBox plugin - Custom scales not reported on map load (geosolutions-it#12212)
  fix a few danish translations (geosolutions-it#12230)
  geosolutions-it#12223: fix rule manager field filtering with checkbox is not working properly (geosolutions-it#12224)
  geosolutions-it#12218: fix pagination in rules manager layers autocomplete does not work (geosolutions-it#12219)
  Fix geosolutions-it#12213 - Fixed startup script for java new versions (geosolutions-it#12214)
  Update Changelog for version 2025.02.03 (geosolutions-it#12211)
  Fix pre-release gh action workflow for CLA (geosolutions-it#12205)
  Update Changelog for version 2026.01.00 (geosolutions-it#12202)
  fix geosolutions-it#12162 flatgeobuf params by getRequestConfigurationByUrl (geosolutions-it#12200)
  Fix geosolutions-it#12162 COG and FlatGeobuf layers support params for protected storage (geosolutions-it#12179)
  Fix doc of MapImport plugin (geosolutions-it#12197)
  Fix geosolutions-it#12044: fix wfs layer hidden in 3D + scale arrow not rendering (geosolutions-it#12155)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

COG and FlatGeobuf layers support params for protected storage

4 participants