[Geoserver-users] http error 400 - bad request

Dear all,

I'm running geoserver 2.18.5 on tomcat and I can't make it work properly.

I can login as admin or any other registered user, but I can't navigate inside the geoserver GUI. If I try to save any modification (on workspace, layer, settings, ...) I receive a 400 error.

A similar issue has been discussed in the link below but without the ability to save any change I can't test the suggested solution:

https://stackoverflow.com/questions/66526411/geoserver-advice-please-http-status-400-bad-request

My (test) geoserver instance is available here: https://ears.bmdc.be/geoserver/

You'll see that it is not possible to navigate in the preview layer. I have the same error with geoserver 2.19.2.

I don't get any error message in the log.

Any suggestion?

Many thanks,

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
https://metadata.naturalsciences.be/

Dear,

For the record, I solved my issue with the correct definition of of the CSRF white list parameter in the web.xml file.
It was enable but with an error in it and the log doesn't give clues about it.

Hope this help!

Cheers,

Nicolas de Ville

On 19/10/2021 11:24, Nicolas De Ville de Goyet wrote:

Dear all,

I'm running geoserver 2.18.5 on tomcat and I can't make it work properly.

I can login as admin or any other registered user, but I can't navigate inside the geoserver GUI. If I try to save any modification (on workspace, layer, settings, ...) I receive a 400 error.

A similar issue has been discussed in the link below but without the ability to save any change I can't test the suggested solution:

https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F66526411%2Fgeoserver-advice-please-http-status-400-bad-request&data=04|01|ndeville%40naturalsciences.be|705f4c9e26b54c1d208508d992f8ad89|4da8d35db472419c9e15665786aadbfb|0|0|637702419584449021|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=VynPA7h7RPkXHS0tSxwg1GFqhZHDMV%2Bi5WE6FRixJjY%3D&reserved=0

My (test) geoserver instance is available here: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fears.bmdc.be%2Fgeoserver%2F&data=04|01|ndeville%40naturalsciences.be|705f4c9e26b54c1d208508d992f8ad89|4da8d35db472419c9e15665786aadbfb|0|0|637702419584449021|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=jKh4Bm0irvkTp0pkm4ZDTNauqwk2rh4R0jxPQdbwERs%3D&reserved=0

You'll see that it is not possible to navigate in the preview layer. I have the same error with geoserver 2.19.2.

I don't get any error message in the log.

Any suggestion?

Many thanks,

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
https://metadata.naturalsciences.be/

Thanks for coming back and sharing the solution with the community!

Cheers
Andrea

···

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail