sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <>
Subject Re: how does the default content mapping work?
Date Fri, 21 Sep 2007 14:57:16 GMT
Hi Edgar,

It seems that this issue is probably related to your issue JCR-1142 you
reported to Jackrabbit. It seems actually, that OCM tries to resolve the
actual node against another class descriptor (again) without checking
whether such a descriptor really exists.

IMHO this is not really correct, because when calling the
getObject(Session, Class, String) method I expect the object returned to
be at least assignement compatible to the class I have submitted.

I will try to find a solution to that problem together with Christophe.


Am Freitag, den 21.09.2007, 11:00 -0300 schrieb Edgar Poce:
> Hi,
>   I'm running Sling and I'm trying to access the repository's root
> node from the browser with the following url: http://localhost:8080.
> According to
> the default component must resolve the request if there's no custom
> mapping, however I'm getting "404 not found".
> the wiki says "If no mapping exists for the given node, an exception
> is thrown and the request fails." and bellow it says "In such a case
> of missing content mapping, a default Content mapping is defined in
> the form of the class".
> I'm not sure whether the expected behavior is to fail with a 404 error
> or to process the request with the default component. Any idea?
> thanks in advance,
> Edgar

View raw message