Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#566 closed defect (fixed)

namefinder, empty search

Reported by: fatbozz Owned by: framm
Priority: minor Milestone:
Component: Plugin Version: latest
Keywords: namefinder search no phrase Cc:

Description

Output is from console

When JOSM started, then i use DOWNLOAD, goto namefinder tab and click on search, nothing filled into searchfield. When click onto "x" or OK to close this exception appear into console

H:\GPSaWardriving>java -jar josm-latest.jar
mappaint: Using jar's elemstyles.xml: "jar:file:/H:/GPSaWardriving/josm-latest.j
ar!/styles/standard/elemstyles.xml"
loading wmsplugin
loading pluginmanager
loading navigator
loading validator
loading namefinder
loading openvisible
loading measurement
loading nearclick
loading tagging-preset-tester
loading colorscheme
got return: 200
org.xml.sax.SAXParseException: The markup in the document following the root ele
ment must be well-formed.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Traili
ngMiscDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at namefinder.PlaceSelection$2.run(PlaceSelection.java:173)
        at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (4)

comment:1 by Gabriel Ebner <ge@…>, 18 years ago

The namefinder gives an interesting result when passed an empty query string:

$ GET -e 'http://www.frankieandshadow.com/osm/search.xml?find=' 
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Date: Thu, 03 Jan 2008 00:16:36 GMT
Pragma: no-cache
Server: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.6l PHP/4.1.2 PHP/3.0.17 mod_perl/1.21 mod_fastcgi/2.4.2
Content-Type: text/xml; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Client-Date: Thu, 03 Jan 2008 00:16:36 GMT
Client-Peer: 212.69.37.6:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Set-Cookie: PHPSESSID=5bec9e50c36316a820075e74bf5be87e; path=/

<br /><br />Internal error, sorry.</br />

Would you like an error message for that?

in reply to:  1 comment:2 by anonymous, 18 years ago

Replying to Gabriel Ebner <ge@gabrielebner.at>:

The namefinder gives an interesting result when passed an empty query string:

$ GET -e 'http://www.frankieandshadow.com/osm/search.xml?find=' 
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Date: Thu, 03 Jan 2008 00:16:36 GMT
Pragma: no-cache
Server: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.6l PHP/4.1.2 PHP/3.0.17 mod_perl/1.21 mod_fastcgi/2.4.2
Content-Type: text/xml; charset=UTF-8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Client-Date: Thu, 03 Jan 2008 00:16:36 GMT
Client-Peer: 212.69.37.6:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Set-Cookie: PHPSESSID=5bec9e50c36316a820075e74bf5be87e; path=/

<br /><br />Internal error, sorry.</br />

Would you like an error message for that?

No, i got popup error message "cannot read place search result from server" everytime

you can try it in browser .
http://www.frankieandshadow.com/osm/?find=

Empty string isnt supported :)

comment:3 by fatbozz, 18 years ago

GET /osm/search.xml?find= HTTP/1.1
User-Agent: Java/1.6.0_03
Host: www.frankieandshadow.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 200 OK
Date: Thu, 03 Jan 2008 00:55:18 GMT
Server: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.6l PHP/4.1.2 PHP/3.0.17 mod_perl/1.21 mod_fastcgi/2.4.2
Set-Cookie: PHPSESSID=f3464156109b82630760f5c3cf915b6d; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

2a 
<br /><br />Internal error, sorry.</br />

0

comment:4 by anonymous, 17 years ago

Resolution: fixed
Status: newclosed

Fixed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.