Community
Participate
Working Groups
I was just looking at the code for ProfileScope and it inherits #getNode from AbstractScope but this is incorrect. It will return /profile/com.example rather than /profile/myProfileId/com.example. (see ProjectScope... it over-rides the method to add the extra level)
Created attachment 128281 [details] ProfileScope Added the getNode() method, I wonder if it would make more sense if it were to simply implement IScopeContext rather than extend AbstractScope, at the moment it does not appear that it is inheriting anything useful.
What is the implication of this bug on current behaviour?
Good idea. I've made this change and released the new method.
I don't believe that anyone is using the scope class to get the pref nodes but if they were, then they would be pointing to the wrong location.