From: Gabriel <gr...@ax...> - 2006-07-31 17:25:29
|
Chris, Mark: I've applied the patch to 2.2.x and trunk, and added a test case to ensure the characters(char[], int, int) method contract is respected (not loosing= =20 content). don't know if Mark is building from source, in any case he would need a=20 gt-main jar to get it working. Cheers, Gabriel. On Monday 31 July 2006 18:56, Gabriel Rold=E1n wrote: > indeed, > http://jira.codehaus.org/browse/GEOT-821 > > going to apply the patch to 2.2.x and trunk right now. > > Gabriel > > On Monday 31 July 2006 17:59, Chris Holmes wrote: > > I think it may actually have to do with the limitations of the SAX > > parser, but I thought we had a workaround for it. Like it'll only chunk > > a certain number of characters at once. > > > > Gabriel, I feel like you may have had this bug and/or a fix for it? I > > know someone did. Maybe it didn't get ported over at some point? > > > > Mark Presling wrote: > > > Hi all, > > > > > > Sorry about the cross-list post but I'm not sure exactly where this > > > problem lies. > > > > > > (Ignore until you read the sentence below) > > > > > > 598072759 [FINE] org.vfny.geoserver.servlets.AbstractService - > > > ------------XML POST START----------- <?xml version=3D"1.0" > > > encoding=3D"UTF-8"?> > > > <GetFeature xmlns=3D*MailScanner has detected a possible fraud attempt > > > from "www.opengis.net" claiming to be* "http://www.opengis.net/wfs" > > > xmlns:gml=3D*MailScanner has detected a possible fraud attempt from > > > "www.opengis.net" claiming to be* "http://www.opengis.net/gml" > > > xmlns:ogc=3D*MailScanner has detected a possible fraud attempt from > > > "www.opengis.net" claiming to be* "http://www.opengis.net/ogc" > > > version=3D"1.0.0" service=3D"WFS" outputFormat=3D"GML2"><Query > > > typeName=3D"topp:roadevent_pnt"><ogc:PropertyName>roadeventid</ogc:Pr= oper > > >ty Name> > > > <ogc:Filter><ogc:And><ogc:Intersects><ogc:PropertyName>the_geom</ogc:= Pr > > >op ertyName> > > > <gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates > > > decimal=3D"." cs=3D"," ts=3D" ">2224073.5294117643,5725938.522408964 > > > 2224073.5294117643,6077972.522408964 > > > 2740784.4985994394,6077972.522408964 > > > 2740784.4985994394,5725938.522408964 > > > 2224073.5294117643,5725938.522408964</gml:coordinates> > > > </gml:LinearRing> </gml:outerBoundaryIs> > > > </gml:Polygon> > > > </ogc:Intersects> > > > <ogc:And><ogc:Not><ogc:PropertyIsGreaterThan><ogc:PropertyName>startd= at > > >e< /ogc:PropertyName> <ogc:Literal>1.155523188718E12</ogc:Literal> > > > </ogc:PropertyIsGreaterThan> > > > </ogc:Not> > > > <ogc:Not><ogc:And><ogc:PropertyIsEqualTo><ogc:PropertyName>eventstatu= s< > > >/o gc:PropertyName> <ogc:Literal>Closed</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsLessThan><ogc:PropertyName>enddate</ogc:PropertyName> > > > <ogc:Literal>1.154227188718E12</ogc:Literal> > > > </ogc:PropertyIsLessThan> > > > </ogc:And> > > > </ogc:Not> > > > <ogc:Not><ogc:PropertyIsEqualTo><ogc:PropertyName>eventstatus</ogc:Pr= op > > >er tyName> <ogc:Literal>Deleted</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > </ogc:Not> > > > <ogc:Or><ogc:PropertyIsEqualTo><ogc:PropertyName>eventtype</ogc:Prope= rt > > >yN ame> <ogc:Literal>Road Hazard</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsEqualTo><ogc:PropertyName>eventtype</ogc:PropertyName> > > > <ogc:Literal>Road Work</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsEqualTo><ogc:PropertyName>eventtype</ogc:PropertyName> > > > <ogc:Literal>Area Warning</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsEqualTo><ogc:PropertyName>eventtype</ogc:PropertyName> > > > <ogc:Literal>Compliment</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsEqualTo><ogc:PropertyName>eventtype</ogc:PropertyName> > > > <ogc:Literal>Complaint</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > <ogc:PropertyIsEqualTo><ogc:PropertyName>*eventtype*</ogc:PropertyNam= e> > > > <ogc:Literal>Damage Report</ogc:Literal> > > > </ogc:PropertyIsEqualTo> > > > </ogc:Or> > > > </ogc:And> > > > </ogc:And> > > > </ogc:Filter> > > > </Query> > > > </GetFeature> > > > > > > > > > ------------XML POST END----------- > > > 598072774 [FINE] > > > org.vfny.geoserver.wfs.requests.readers.GetFeatureXmlReader - just > > > parsed: org.xml.sax.InputSource@9c610c 598072774 [INFO] > > > org.vfny.geoserver.servlets.AbstractService - handling request: > > > Request: null > > > output format:GML2 > > > max features:2147483647 > > > version: > > > queries: > > > Query [] > > > feature type: topp:roadevent_pnt > > > filter: [[ the_geom intersects POLYGON ((2224073.5294117643 > > > 5725938.522408964, 2224073.5294117643 6077972.522408964, > > > 2740784.4985994394 6077972.522408964, 2740784.4985994394 > > > 5725938.522408964, 2224073.5294117643 5725938.522408964)) ] AND [NOT [ > > > startdate > 1.155523188718E12 ] AND NOT [[ eventstatus =3D Closed ] A= ND [ > > > enddate < 1.154227188718E12 ]] AND NOT [ eventstatus =3D Deleted ] AN= D [[ > > > eventtype =3D Road Hazard ] OR [ eventtype =3D Road Work ] OR [ event= type =3D > > > Area Warning ] OR [ eventtype =3D Compliment ] OR [ eventtype =3D Com= plaint > > > ] OR [ *ttype* =3D Damage Report ]]]] [properties: roadeventid] > > > > > > > > > This is a WFS request sent to GeoServer 1.3.1 from uDig. Admittedly it > > > is quite a big filter but I can't really get away from that. > > > > > > As you can see the last attribute filter in the XML post says "... or > > > eventtype =3D Damage Report". However, the parsed GeoTools filter bel= ow > > > that says "... OR [ ttype =3D Damage Report ]". This only happens whe= n I > > > have this number of attribute filters turned on, if I reduce the numb= er > > > by one everything works correctly. > > > > > > The amount of truncation appears random as well. Sometimes the filter > > > ends up as "OR [ e =3D Damage Report ]". > > > > > > Has anyone seen this before or know what can be done about it? > > > > > > Thanks, > > > Mark > > > > > > > > > !DSPAM:1003,44cd6f7d13131971556521! > > > -- > > > This message has been scanned for viruses and > > > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and > > > is believed to be clean. > > > > > > ---------------------------------------------------------------------= =2D- > > >-- Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to sha= re > > > your opinions on IT & business topics through brief surveys -- and ea= rn > > > cash > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVD > > >EV > > > > > > !DSPAM:1003,44cd6f7d13131971556521! > > > > > > > > > ---------------------------------------------------------------------= =2D- > > >- > > > > > > _______________________________________________ > > > Geoserver-users mailing list > > > Geo...@li... > > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > > > > > > > !DSPAM:1003,44cd6f7d13131971556521! =2D-=20 Gabriel Rold=E1n (gr...@ax...) Axios Engineering (http://www.axios.es) Tel. +34 944 41 63 84 =46ax. +34 944 41 64 90 |