jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommaso Teofili <teof...@adobe.com>
Subject Oak over HTTP guidelines
Date Fri, 25 Jan 2013 11:51:45 GMT
Hi all,

I'm trying to access an Oak repository over HTTP as explained at [1] so I assumed I had to
use oak-run as explained at [2].

If I try with curl:
curl -d foo=bar http://localhost:8080/test

I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 String index out of range: -1</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /test. Reason:
<pre>    String index out of range: -1</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
...

If I try with httpie:
http -b http://localhost:8080/ test:={}

I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Cannot add node 'test' at /</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /. Reason:
<pre>    Cannot add node 'test' at /</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>

or trying:
http POST http://localhost:8080/node name=John

I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 String index out of range: -1</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /node. Reason:
<pre>    String index out of range: -1</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>

So neither using httpie nor using curl I can create a node, is the wiki outdated or am I missing
something?

The StringIndexOutOfRange seems to be due to the missing final slash on the sent URL (http://localhost:8080/test)
so I wonder if that's a bug.

Thanks in advance,
Tommaso

[1] : http://wiki.apache.org/jackrabbit/Oak-over-HTTP
[2] : http://markmail.org/message/vq52qfhpdyqr2ojv

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message