-
Notifications
You must be signed in to change notification settings - Fork 18
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
getParcelle with empty ccopre might return results from a prefixed section #672
Comments
not specifying |
looking in the code at https://github.com/georchestra/cadastrapp/blob/master/cadastrapp/src/main/java/org/georchestra/cadastrapp/service/ParcelleController.java#L138, calling the API with
It's not because a parameter is empty that it should be ignored ? There might be other occurences of this bug i think.... |
i think
via the API..
so |
i have a potential fix that works for those two cases, but that need careful examination to check for side-effects:
|
wow wow ! I confirm the bug with the 1.9 version. Seems present since a long time :( The correct SQL should be, looking for a select distinct p.parcelle, p.cgocommune, p.dnvoiri, p.dindic, p.cconvo, p.dvoilib, p.ccopre, p.ccosec, p.dnupla, p.dcntpa
from app_cadastrapp.parcelle p
where cgocommune = '350206'
and ccosec = 'AO'
AND ccopre = ''
and dnupla = '18'
ORDER BY parcelle Note the sort by the |
dont ignore empty values in createEqualsClauseRequest() (#672)
https://ids.craig.fr/cadastrapp/services/getParcelle?cgocommune=630255&dnupla=101&ccopre=&ccosec=ZB yields
the second entry shouldnt be returned as it doesnt match the given
ccopre
parameter.@MaelREBOUX do you have cities with prefixed sections having the same name (eg in my case 266ZB and ZB), and having a plot with the same dnupla/id ? If so you should also have this issue.
The text was updated successfully, but these errors were encountered: