Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aperi2007 opened this issue Dec 26, 2012 · 3 comments
Open

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

aperi2007 opened this issue Dec 26, 2012 · 3 comments

Comments

@aperi2007
Copy link

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.

@sdikiy
Copy link
Contributor

sdikiy commented Dec 27, 2012

same problem...?

sdikiy@2c93f1f865bd29

@aperi2007
Copy link
Author

same problem...?

sdikiy/tinyows@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,

@paulkamer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants