Hi,

I’m encountering a 500 Error when following the README.md on github at 
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-http/README.md.
I’m just getting into it and feel that I’m missing something obvious.

Steps to reproduce:


1.       Cloned the repository and created an IntelliJ IDEA project.

2.       Executed: mvn clean package

3.       In the terminal at the root of the project:

-> java -jar oak-run/target/oak-run-1.6-SNAPSHOT.jar server
Apache Jackrabbit Oak 1.6-SNAPSHOT
Starting Oak-Memory repository -> http://localhost:8080/
11:52:26.269 [main] WARN  o.a.j.s.r.d.ProtectedRemoveManager - 
protectedhandlers-config is missing -> DIFF processing can fail for the Remove 
operation if the content toremove is protected!


4.       Updated .netrc by adding the following line:

machine localhost login admin password admin


5.       In another terminal window, executed the first command from the README 
(already had installed the lattest httpie):

-> http -j -b localhost:8080
{
    "jcr:primaryType": "rep:root",
    "jcr:system": {},
    "oak:index": {},
    "rep:security": {}
}


6.       Executing the next example produces the error:

-> http -j -b localhost:8080/test jcr\\:primaryType=oak:Unstructured foo=abc 
bar:=123


<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 OakConstraint0055: /test[[nt:unstructured]]: Required property 
type violation in jcr:primaryType = oak:Unstructured</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /test. Reason:
<pre>    OakConstraint0055: /test[[nt:unstructured]]: Required property type 
violation in jcr:primaryType = oak:Unstructured</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>


</body>
</html>

Expected to see:
{
    "bar": "123",
    "foo": "abc",
    "jcr:primaryType": "oak:Unstructured"
}

Thanks,
Joe

Reply via email to