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

REST server not loading in 3.28 Firenze but work fine in previous versions #51409

Closed
2 tasks done
kylesomerville opened this issue Jan 9, 2023 · 7 comments · Fixed by #51423
Closed
2 tasks done

REST server not loading in 3.28 Firenze but work fine in previous versions #51409

kylesomerville opened this issue Jan 9, 2023 · 7 comments · Fixed by #51423
Assignees
Labels
ArcGIS REST provider Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore

Comments

@kylesomerville
Copy link

What is the bug or the crash?

When loading a utility.arcgis.com REST service in 3.28 Firenze, the service is available and layers are selectable within the Browser panel. When loading the layer, a 403 connection error is reported.

The same service is available and loads successfully in 3.20 and 3.22.

Does not seem to apply to all REST services.

Steps to reproduce the issue

In Browser Add ArcGIS REST connection, URL https://utility.arcgis.com/usrsvcs/servers/5ab151cfba6744528d76f43071d4f424/rest/services/Historical/OSNIHistorical_CS_OS_6_x_x_1/MapServer, referer https://apps.spatialni.gov.uk/PRONIApplication/.

Expand the browser connection and Add layer to Project.

Error message (yellow bar to top of map screen) "(All layers): Network error: 403".

Versions

QGIS version
3.28.2-Firenze
QGIS code revision
b47e00b
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.6.1
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.39.4
PDAL version
2.4.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
changeDataSource
3.1
clipper
1.2
dem_drainage_analyses
0.2
dimensioning
0.2
EasyCustomLabeling
2.1
excel_sync
3.6
FreehandRasterGeoreferencer
0.8.3
go2streetview
8.6
group_transparency
0.2
joinmultiplelines
Version 0.4.1
layerfromclipboard
0.12
MemoryLayerSaver
4.0.4
NNJoin
3.1.3
nominatim
1.4.3
openlayers_plugin
2.0.0
OSMDownloader
1.0.3
OSTranslatorII
3.2.4
pointsamplingtool
0.5.4
profile-manager
0.31
profiletool
4.2.2
qad
3.0.4
qfieldsync
v4.2.0
Qgis2threejs
2.7.1
QGISSortAndNumber-master
1.0
QPackage
1.5
QRectangleCreator
0.3
QuickPrint
3.6.1
quick_map_services
0.19.32
rivergis
3.0
splitmultipart
1.0.0
themeselector
3.2.2
valuetool
3.0.15
ZoomToPostcode
1.0
db_manager
0.1.20
grassprovider
2.12.99
processing
2.12.99
sagaprovider
2.12.99
ImportPhotos
3.0.5
qgis_resource_sharing
1.0.0
SpreadsheetLayers
2.1.0-alpha1

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@kylesomerville kylesomerville added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 9, 2023
@agiudiceandrea agiudiceandrea added Regression Something which used to work, but doesn't anymore ArcGIS REST provider labels Jan 9, 2023
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jan 9, 2023

Issue confirmed as a regression: it occurs with QGIS 3.28 while it doesn't occur with QGIS 3.22.

It seems to me this issue is due to the same underlying issue affecting the WMS provider (after #46320) as previously reported in #48532 and allegedly fixed for all the providers by @benoitdm-oslandia with #48578.

@roya0045
Copy link
Contributor

roya0045 commented Jan 9, 2023

Issue confirmed as a regression: it occurs with QGIS 3.28 while it doesn't occur with QGIS 3.22.

It seems to me this issue is due to the same underlying issue affecting the WMS provider (after #46320) as previously reported in #48532 and allegedly fixed for all the providers by @benoitdm-oslandia with #48578.

It's a shame this wasn'T caught by a test.

@benoitdm-oslandia
Copy link
Contributor

I have tried with the 3.22 and with the specified ArcGIS REST connection information (URL https://utility.arcgis.com/usrsvcs/servers/5ab151cfba6744528d76f43071d4f424/rest/services/Historical/OSNIHistorical_CS_OS_6_x_x_1/MapServer, referer https://apps.spatialni.gov.uk/PRONIApplication/) but I am unable to connect to the service.

Is this a public service?

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jan 10, 2023

@benoitdm-oslandia, see:
QGIS 3.28 (the referer header is missing in the tiles requests):

Video_2023-01-10_103849.mp4

QGIS 3.22 (the referer header is present in the tiles requests):

Video_2023-01-10_104241.mp4

@benoitdm-oslandia
Copy link
Contributor

Thanks for the videos! I will try to work on this issue from them but without a proper arcgis server (which needs a referer) it will be quite inefficient to fix it.

@agiudiceandrea
Copy link
Contributor

@benoitdm-oslandia the server seems public, so you, as me, can use it.

Anyway, this https://gist.github.com/agiudiceandrea/4cd138a45ecb4d5c57335890b1c53f2b is a Gist with some requests sent by QGIS 3.28, and this https://gist.github.com/agiudiceandrea/a30079f707a1d52b1d0926f87b6724b6 by QGIS 3.22.

@benoitdm-oslandia
Copy link
Contributor

My bad: I made a typo in the url :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ArcGIS REST provider Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants