camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Fulltextsearch problem - Secured search does not work anymore with QGIS quickfinder #2892

Closed gnerred closed 7 years ago

gnerred commented 7 years ago

Version 2.1.2

QGIS quickfinder plugin uses GMF FTS service to search and locate objects within QGIS. Until version 1.6, the plugin worked well with secured and non secured search. Since 2.1.2, only non secured search works, secured one does not. Is there a special special config (Apache or something else) that I missed during migration ? Secured search works well in GMF CGXP and NGEO mobile.

Concerned code in plugin is here : https://github.com/3nids/quickfinder/blob/master/core/geomapfish_finder.py#L50-L56 ping @3nids

Thanks

gnerred commented 7 years ago

@3nids you have to set the referrer in the request you make (dixit @sbrunner ). Could you please test ?

sbrunner commented 7 years ago

In the Quick search the referer should be set with the right value :-)

CU Stéphane

3nids commented 7 years ago

yep, it works with referer, thanks!

gnerred commented 7 years ago

Cool :-)