Right now the XWiki.XWikiPreferences page has view rights only for Admin users: this means we cannot access its property values using a REST call.
This is limiting in cases where we need to know some property values in our Javascript: right now we rely on script services with velocity to access such values, but it leads to various bugs because of the browser cache. For example we have https://jira.xwiki.org/browse/XWIKI-16809 related to this kind of bug.
In order to solve this bug, and to allow new Javascript features (e.g. to activate some features based on preferences) I suggest that we allow to access some XWikiPreferences properties with REST by guest user. We could for example create a whitelist of properties that are allowed to be accessed through REST calls.
JIRA issue available there: https://jira.xwiki.org/browse/XWIKI-16946
WDYT?