tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

The prefix don't allow use the "_" character

Open aperi2007 opened this issue 12 years ago • 3 comments

When using a prefix name like this:

<layer ns_prefix='ambiti_amministrativi' ns_uri="http://www.regione.toscana.it/"

Tinyows give an error because the "ambiti_amministrativi" name is not compatible with the parser: ((\w:)?\w(=\w)?){1,}

If I remove the "_" using for example <layer ns_prefix='ambitiamministrativi' ns_uri="http://www.regione.toscana.it/"

It start to work.

aperi2007 avatar Dec 26 '12 21:12 aperi2007

same problem...?

https://github.com/sdikiy/tinyows/commit/2c93f1f865bd29

sdikiy avatar Dec 27 '12 07:12 sdikiy

same problem...?

sdikiy@2c93f1f

Yes.

I test it and verify the with this patch tinyows allow to have a ns_prefix with the character "_" in it.

Without this patch the tinyows give the usual error.

Just a details. I guess this error will born only when the request is using the POST method. However the patch will resolve it.

Thx,

aperi2007 avatar Dec 27 '12 14:12 aperi2007

I ran into this issue as well when one of the examples in the "PostGIS Cookbook" book from Packt. Could this PR be merged?

paulkamer avatar May 27 '14 16:05 paulkamer