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

WMS 1.3.0 interactive tests are failing on the online TEAM Engine platform #103

Open
pblottiere opened this issue May 15, 2023 · 8 comments
Assignees

Comments

@pblottiere
Copy link

Hello,

QGIS Server is certified for WMS 1.3.0 for several years now and OGC tests are run in continuous integration with GitHub Action on a daily basis (for each PR actually).

Lastly we tried to renew the certification for the last LTR (QGIS Server 3.28) with the online TEAM Engine platform
(http://cite.opengeospatial.org/teamengine/) but we're facing an issue with "basic" tests. Actually, all tests are green except for interactive tests:

  • basic-polygons-sanity-check
  • blue-lake-sanity-check
  • layer-order
  • aspect-ratio

During the test, it looks like QGIS Server is not returning the correct image because the image is not displayed on the HTML page:

screenshot

However, I tried to execute the corresponding WMS requests (retrieved from QGIS Sever logs) and everything looks good. For example:

Does the image above depict a large diamond that fills the frame?

http://138.201.120.72:8080/certification_qgisserver_3_28?&VERSION=1.3.0&REQUEST=GetMap&LAYERS=cite%3ABasicPolygons&STYLES=&CRS=CRS:84&BBOX=-1,-1,1,1&WIDTH=300&HEIGHT=300&FORMAT=image%2Fjpeg

image

Does the image above depict a map of the Blue Lake vicinity with a surrounding neatline?

http://138.201.120.72:8080/certification_qgisserver_3_28?&VERSION=1.3.0&REQUEST=GetMap&LAYERS=cite%3AStreams,cite%3ALakes,cite%3APonds,cite%3ABridges,cite%3ARoadSegments,cite%3ADividedRoutes,cite%3ABuildings,cite%3AMapNeatline&STYLES=&CRS=CRS:84&BBOX=-0.005,-0.0025,.005,0.0025&WIDTH=400&HEIGHT=200&FORMAT=image%2Fjpeg

image

Please can you give me some hints or let me know if I'm missing something?

Thanks a lot for your work and have a good day.

@dstenger dstenger self-assigned this May 15, 2023
@dstenger
Copy link
Contributor

Thank you for reporting.

This seems to be a display error.
I just tested https://cite.ogc.org/teamengine/ with Firefox 112.0.1 (64-Bit) and Chromium Version 113.0.5672.63 and, in both cases, the images are displayed correctly.

Which Web Browser are you using to execute the tests (and which version)?

@pblottiere
Copy link
Author

pblottiere commented May 16, 2023

Hello @dstenger,

This seems to be a display error.

OK, good news for QGIS Server then :).

I just tested https://cite.ogc.org/teamengine/ with Firefox 112.0.1 (64-Bit) and Chromium Version 113.0.5672.63 and, in both cases, the images are displayed correctly.

Which Web Browser are you using to execute the tests (and which version)?

I'm on an up-to-date ArchLinux and I tested with Firefox and Chromium:

~> firefox --version
Mozilla Firefox 110.0
~> chromium --version
Chromium 110.0.5481.100 Arch Linux

Thank you for your answer.

@pblottiere
Copy link
Author

pblottiere commented May 16, 2023

I'm on an up-to-date ArchLinux and I tested with Firefox and Chromium:

Mmm actually no, the last version of Firefox is also 113.0 for ArchLinux. I'm going to upgrade my system and I let you know.

@dstenger
Copy link
Contributor

dstenger commented May 16, 2023

The root cause of the problem seems that your service is using HTTP instead of HTTPS.
The Web Browser rewrites the URL of your service to HTTPS which does not return a map.
So, there is a problem when testing HTTP services with HTTPS TEAM Engine which must be tackled inside the code of the test suite.

@pblottiere However, there is a workaround you can use:

  • Press right mouse button over broken image.
  • Select "Open image in new tab" (or similar).
  • Image should be displayed correctly in new tab.

@dstenger
Copy link
Contributor

Also, I migrated this issue to the ets-wms13 tracker because the fix will be created there.

@dstenger dstenger added bug and removed question labels May 16, 2023
@dstenger dstenger transferred this issue from opengeospatial/teamengine May 16, 2023
@dstenger
Copy link
Contributor

Proposal for fix inside test suite:

  • Create button below the image which opens it in a new tab.
  • Add text explaining that button can be used if image is not displayed.

@dstenger
Copy link
Contributor

@pblottiere I hope your problem is solved by using the above described workaround. If you have any further questions, please post them here.

@pblottiere
Copy link
Author

pblottiere commented May 22, 2023

Hello @dstenger,

Sorry for the delay, I was on vacation.

The root cause of the problem seems that your service is using HTTP instead of HTTPS.
The Web Browser rewrites the URL of your service to HTTPS which does not return a map.

Oh ok! I always used an HTTP service for the formal certification with Teamengine, so I've never asked myself that question really... New policy of Web Browsers?

However, there is a workaround you can use:

  1. Press right mouse button over broken image.
  2. Select "Open image in new tab" (or similar).
  3. Image should be displayed correctly in new tab.

I just tried on Firefox but unfortunately, it doesn't work :

image

But I retrieved the corresponding URL by inspecting the web page, so I successfully complete the testsuite 🎉.

Thanks a lot for investigating @dstenger 👍

@dstenger dstenger removed their assignment Jul 25, 2024
@dstenger dstenger added this to CITE Aug 1, 2024
@dstenger dstenger moved this to To do in CITE Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

3 participants