Opened 9 years ago

Closed 7 years ago

#2831 closed defect (invalid)

Queries containing a slash return 500 Internal Server Error

Reported by: Scytale Owned by: 80n80n@…
Priority: major Milestone:
Component: xapi Version:
Keywords: Cc:

Description

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.)

Change History (2)

comment:1 Changed 7 years ago by pnorman

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.

comment:2 Changed 7 years ago by pnorman

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.