Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Queries containing a slash return 500 Internal Server Error #2831

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: Scytale
[Submitted to the original trac issue database at 3.29pm, Friday, 26th March 2010]

Apparently it currently is not possible to search for anything containing slashes:

$ curl -v -Lg 'http://osmxapi.hypercube.telascience.org/api/0.6/node[website=http://raumzeitlabor.de/]'
* About to connect() to osmxapi.hypercube.telascience.org port 80 (#0)
*   Trying 137.110.119.130... connected
* Connected to osmxapi.hypercube.telascience.org (137.110.119.130) port 80 (#0)
> GET /api/0.6/node[website=http://raumzeitlabor.de/] HTTP/1.1
> User-Agent: curl/7.19.4 (universal-apple-darwin10.0) libcurl/7.19.4 OpenSSL/0.9.8l zlib/1.2.3
> Host: osmxapi.hypercube.telascience.org
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 26 Mar 2010 21:54:43 GMT
< Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch16
< Content-Length: 0
< Connection: close
< Content-Type: application/x-httpd-cgi
< 
* Closing connection #

Trying to escape this does not work either:

$ curl -v -Lg 'http://osmxapi.hypercube.telascience.org/api/0.6/node[website=http:%2f%2fraumzeitlabor.de%2f]'
* About to connect() to osmxapi.hypercube.telascience.org port 80 (#0)
*   Trying 137.110.119.130... connected
* Connected to osmxapi.hypercube.telascience.org (137.110.119.130) port 80 (#0)
> GET /api/0.6/node[website=http:%2f%2fraumzeitlabor.de%2f] HTTP/1.1
> User-Agent: curl/7.19.4 (universal-apple-darwin10.0) libcurl/7.19.4 OpenSSL/0.9.8l zlib/1.2.3
> Host: osmxapi.hypercube.telascience.org
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Fri, 26 Mar 2010 21:54:22 GMT
< Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch16
< Content-Length: 408
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
< 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/0.6/node[website=http://raumzeitlabor.de/] was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch16 Server at osmxapi.hypercube.telascience.org Port 80</address>
</body></html>
* Closing connection #0

(And no, this is not restricted to the hypercube server.)

@openstreetmap-trac
Copy link
Author

Author: pnorman
[Added to the original trac issue at 2.13am, Monday, 2nd April 2012]

Closing as this relates to the old XAPI which is no longer maintained. The new jxapi can be found at https://github.com/iandees/xapi-servlet and issues should be reported there.

Also, / characters in URLs should be % encoded.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant