Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Preview freeze when process (ill-formatted) CSIRO Marlin GeoServer WMS URLs #3458

Closed
t83714 opened this issue May 1, 2023 · 1 comment
Labels
Milestone

Comments

@t83714
Copy link
Contributor

t83714 commented May 1, 2023

Describe the bug

Map Preview freeze when process (ill-formatted) CSIRO Marlin GeoServer WMS URLs.

https://uprgade-csw-connector.dev.magda.io/api/v0/registry/records/ds-marlin-c3e1e8d0-ea59-4053-b356-f5746ae224ed?optionalAspect=dcat-dataset-strings&optionalAspect=dcat-distribution-strings&optionalAspect=dataset-distributions&optionalAspect=formats&dereference=true

 dcat-distribution-strings: 
{
     		accessURL: "https://www.cmar.csiro.au/geoserver/wms?&CQL_FILTER=SURVEY_NAME%20%3D%20%27KIM197105%27",
     		description: "Hydrology data for Kimbla Voyage KIM 5/71",
     		format: "OGC:WMS-1.3.0-http-get-map",
     		title: "mnf:HYDROLOGY_HEADER_AODN_VIEW"
 },
  • Issue 1: has ?& in the url
  • issue 2: the layer name should be the distribution name

Need to investigate the followings:

  • Why multiple layer dropdown doesn’t show?

Correct URL should be:

https://www.cmar.csiro.au/geoserver/wms?CQL_FILTER=SURVEY_NAME%20%3D%20%27KIM197105%27&service=WMS&version=1.3.0&request=GetCapabilities&layer=mnf:HYDROLOGY_HEADER_AODN_VIEW

@t83714 t83714 added the bug label May 1, 2023
@t83714 t83714 added this to the v2.2.4 milestone May 1, 2023
t83714 added a commit that referenced this issue May 2, 2023
t83714 added a commit that referenced this issue May 3, 2023
- only make proxied requests when preview map config allow it
- avoid the unnecessary extra requests
t83714 added a commit that referenced this issue May 4, 2023
@t83714
Copy link
Contributor Author

t83714 commented May 8, 2023

closed via PR: #3459 & magda-io/magda-preview-map#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant