GeoServer: 404 web UI fix - use REST API instead (documented)
This commit is contained in:
49
geoserver_404_fix.md
Normal file
49
geoserver_404_fix.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# GeoServer - Erreur 404 Interface Web (Création Magasin)
|
||||
|
||||
## Date : 05 Mai 2026
|
||||
|
||||
## 🔍 Problème
|
||||
Erreur **404 Not Found** quand on essaie de créer un nouvel entrepôt via l'interface web GeoServer :
|
||||
- URL : `https://geoserver.digitribe.fr/geoserver/web/...`
|
||||
- Cause probable : Framework Wicket (session) ou CSRF
|
||||
|
||||
## ✅ Solution : Utiliser l'API REST
|
||||
L'interface web peut être instable, mais **l'API REST fonctionne parfaitement**.
|
||||
|
||||
### Exemple : Créer un magasin WMS cascadé
|
||||
```bash
|
||||
curl -X POST "https://geoserver.digitribe.fr/geoserver/rest/workspaces/Digitribe/wmsstores" \
|
||||
-u "admin:Digitribe972" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"wmsStore": {
|
||||
"name": "geomartinique_wms",
|
||||
"description": "Flux WMS géoMartinique",
|
||||
"type": "WMS",
|
||||
"url": "https://datacarto.geomartinique.fr/wms",
|
||||
"enabled": true
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
### Publier une couche WMS
|
||||
```bash
|
||||
curl -X POST "https://geoserver.digitribe.fr/geoserver/rest/workspaces/Digitribe/wmsstores/geomartinique_wms/wmslayers" \
|
||||
-u "admin:Digitribe972" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"wmsLayer": {
|
||||
"name": "ENVIRONNEMENT",
|
||||
"title": "Environnement Martinique"
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
## 📋 Flux géoMartinique disponibles
|
||||
- **WMS** : `https://datacarto.geomartinique.fr/wms`
|
||||
- **WMTS** : `https://datacarto.geomartinique.fr/wmts`
|
||||
- **WFS** : `https://datacarto.geomartinique.fr/wfs`
|
||||
|
||||
## 🔗 Références
|
||||
- Test magasin créé avec succès : `test_store` (ID dans workspace Digitribe)
|
||||
- API REST GeoServer : https://docs.geoserver.org/stable/en/user/rest/
|
||||
Reference in New Issue
Block a user