Hi, It looks like the AbstractSlingRepository2.login() returns a session, which does not return the same repository object in 'getRepository()'.
I created an issue and will try to provide a patch. regards, toby [0] https://issues.apache.org/jira/browse/SLING-3481
