opensearch-project / reporting

Export and automate PNG, PDF, and CSV reports in OpenSearch Dashboards
https://opensearch.org/docs/latest/dashboards/reporting/
Apache License 2.0
29 stars 66 forks source link

WMS setup for MAP layer not working [BUG] #701

Open RobSaxonNokia opened 1 year ago

RobSaxonNokia commented 1 year ago

When using MAPS (Create a MAP visualization) you start with a world map. If you "Add" a new layer, and choose custom map, then you can configure a WMS setup. When I enter the correct data below, it never works. It seems that the GET request is not included all the necessary options. I used my own program to capture a trace. I am using HTTP to capture the trace so the setup does not work with the true HTTPS end point. However, I can see that the GET request only includes options one time then after that it does not include options. When I configure the true HTTPS I can't see if the GET request is working however, I changed the WMS URL to include all options and it works but the map is useless. My test would show that the GET request is not including the required options.

To reproduce this bug add the following:

  1. Login to OpenSearch Dashboard
  2. Select Visualize then create then choose MAP (or pick Maps from plugin and create new map).
  3. From the blank screen of the world, select Add Layer
  4. Choose Custom map
  5. Enter the WMS parameters:
  6. URL: https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer
  7. Layers: 0
  8. Version: 1.3.0
  9. Format: image/png
  10. CRS: EPSG:3857
  11. Skip next two (leave blank)
  12. Styles: default
  13. Save (click Update) The screen is blank. A trace of the traffic shows no options. The hack is:

This will show something.

The issue is no WMS options are sent when configured correctly.

My environment

derek-ho commented 1 year ago

@junqiu-lei @RobSaxonNokia this seems like a maps issue, can we move it there?

RobSaxonNokia commented 1 year ago

Yes.

From: Derek Ho @.> Sent: Thursday, May 18, 2023 9:09 AM To: opensearch-project/reporting @.> Cc: Rob Saxon (Nokia) @.>; Mention @.> Subject: Re: [opensearch-project/reporting] WMS setup for MAP layer not working [BUG] (Issue #701)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

@junqiu-leihttps://github.com/junqiu-lei @RobSaxonNokiahttps://github.com/RobSaxonNokia this seems like a maps issue, can we move it there?

— Reply to this email directly, view it on GitHubhttps://github.com/opensearch-project/reporting/issues/701#issuecomment-1553117252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6KSSPRABQOEEG55WQCFEVLXGYUN7ANCNFSM6AAAAAAYGNBDF4. You are receiving this because you were mentioned.Message ID: @.**@.>>

junqiu-lei commented 1 year ago

@RobSaxonNokia I tried to reproduce the steps on my local(MacOS, Chrome Version 113.0.5672.92, and OpenSearch 2.7) and it works as below, is there any specific steps we're different?

@derek-ho Looks like I don't have the access to move this issue to https://github.com/opensearch-project/dashboards-maps

image image