You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2018/05/04 10:39:14 UTC

POST to / resolves to a SyntheticResource due to recent changes, any idea why?

Hi,

Details at https://issues.apache.org/jira/browse/SLING-7651 - in trunk
a POST to / with admin credentials resolves to a RedirectResource
(which inherits from SyntheticResource), causing a change of behavior
when trying to set properties on the root: nodes are created instead
of setting properties.

That doesn't happen if the POST is made with an extension such as /.json

With sling10 both GET and POST to / as admin resolve to a JcrNodeResource.

Before I spend too much time cajoling my debugger, does anyone have a
clue what has changed?

-Bertrand

Re: POST to / resolves to a SyntheticResource due to recent changes, any idea why?

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Fri, May 4, 2018 at 4:35 PM, Robert Munteanu <ro...@apache.org> wrote:
> ....seems like debugging those was quite fun ( or "fun" )....

It was...it's a strange feeling to go back to those ooooold tests and
understand why new things are breaking them ;-)

-Bertrand

Re: POST to / resolves to a SyntheticResource due to recent changes, any idea why?

Posted by Robert Munteanu <ro...@apache.org>.
On Fri, 2018-05-04 at 16:07 +0200, Bertrand Delacretaz wrote:
> On Fri, May 4, 2018 at 12:39 PM, Bertrand Delacretaz
> <bd...@apache.org> wrote:
> > Details at https://issues.apache.org/jira/browse/SLING-7651 ...
> 
> That's fixed now, there was a (weird IMO) mapping for localhost in
> /etc/map, details there.
> 
> There are also mappings for /content/, personally I'm not happy
> having
> those in our default configs as they blur things in many cases when
> debugging. But all our integration tests should be green now except
> UserPrivilegesInfoTest (SLING-7635) - I'm not planning to work on
> that
> one ATM.

Thanks for all the fixes so far, Bertrand, and for keeping us up-to-
date - seems like debugging those was quite fun ( or "fun" ).

Robert

Re: POST to / resolves to a SyntheticResource due to recent changes, any idea why?

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Fri, May 4, 2018 at 12:39 PM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> Details at https://issues.apache.org/jira/browse/SLING-7651 ...

That's fixed now, there was a (weird IMO) mapping for localhost in
/etc/map, details there.

There are also mappings for /content/, personally I'm not happy having
those in our default configs as they blur things in many cases when
debugging. But all our integration tests should be green now except
UserPrivilegesInfoTest (SLING-7635) - I'm not planning to work on that
one ATM.

-Bertrand