Hi all,
I have problems with calls rest of GeoServer.
I would like to post some geotiff. In my bash script I compose the string and then run it with exec $nameVariable
The execution of this command causes this error in GeoServer:

/org.geoserver.rest.RestletException//:////java.net.MalformedURLException//: no////protocol:////"file :/ ////// home /////..../

The same statement if I do an echo in the terminal and then run it, everything works fine
maybe there are problems with double quotes?
This is the instruction:

/instruction////=////'//curl-//v-//u//' $////8 '//,' $////9 '//-//XPUT//-H////"Content-type//: text / plain//"-d////"file :/ ///'////$ 7 $////baseName////'//' http://////'$////4'//: 8080/////////GeoServer///// rest///// workspaces/////////'//$ {//10}//'/////////coveragestores/////////'//$ {//11}//'/////////external.geotiff////'/
///exec//$//instruction/

Note: I also tried this

instruction = "curl-v-u" $ 8 "," $ 9 "-XPUT-H \"Content-type: text / plain\"-d \"file :/ /" $ 7 $ baseName \'' http:// "$ 4": 8080 / GeoServer / rest / workspaces / "$ {10}" / coveragestores / "$ {11}" / external.geotiff "

Regards.
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to