eblondel/geosapi

Trailing slash may encounter issue when creating GSManager

Closed this issue · 4 comments

bmkor commented

First of all, big thanks for this wonderful R library.

Some details on the versions:
Geoserver vesion 2.17.0
R version 4.0.2
geosapi version 0.5-1

I encountered error (http status 500) when creating GSManager through running GSManager$new. Upon looking at the code, found that this line would add a trailing slash, i.e. https://[GEOSERVER HOST]/geoserver/rest/ when creating the connection and this would return error in my case. Managed to solve this issue by hacking through removing the trailing slash via nginx rewriting rule.

I am not certain if this is only my geoserver setting and would like to share this out for your information.

Thanks a lot.

Hi,

I have the same issue with my configuration :

Geoserver vesion 2.20.0
R version 4.2.0
geosapi version 0.6

Thanks in advance for the help !

@bmkor @mathieu-massaviol I've applied a fix for this. Can you test it?

It works perfectly now, thanks @eblondel !

part of geosapi 0.6-1, just published on CRAN