osgeonl / geonetwork-dutch-skin

Dutch styles GeoNetwork
4 stars 5 forks source link

search within a geometry fails #16

Open pvgenuchten opened 6 years ago

pvgenuchten commented 6 years ago

if you select 'binnen' (within), the filter is not applied

this functionality works fine in core, so there should be some code in dutch-skin breaking this

image

juanluisrp commented 6 years ago

It makes a query like this one when Binnen is selected:

q?
_content_type=json
&bucket=s101
&facet.q=
&fast=index
&from=1
&geometry=POLYGON((2.4205239566429615+51.777031725046925,2.469065268462913+51.02508235920448,4.606638707793551+51.05919068698308,4.59363087691373+51.81188410822244,2.4205239566429615+51.777031725046925))
&relation=within
&resultType=details
&sortBy=relevance
&to=20

but it causes a 500 Internal server error response:

{
  error: {
    message: "",
    class: "NullPointerException",
    stack: {
      at: "jeeves.config.springutil.JeevesDelegatingFilterProxy JeevesDelegatingFilterProxy.java line 104 #doFilter"
    },
    request: { }
  }
}

I need to check the server log.

juanluisrp commented 6 years ago

What is sent in a standard GN 3.4.x with the default view is

_content_type: json
bucket: s101
facet.q: 
fast: index
from: 1
geometry: POLYGON((-5.300099667324134 44.98780443987113,-5.300099667324134 42.96286131888769,1.1588072500293807 42.96286131888769,1.1588072500293807 44.98780443987113,-5.300099667324134 44.98780443987113))
relation: within_bbox
resultType: details
sortBy: relevance
to: 20

so the difference is relation=within (not working) vs. relation: within_bbox (working)

MichelGabriel commented 5 years ago

Is this fixed?