Branch: refs/heads/XWIKI-22786 Home: https://github.com/xwiki/xwiki-platform Commit: e911f52bfa196107976b44bb0a784258a1fbd01f https://github.com/xwiki/xwiki-platform/commit/e911f52bfa196107976b44bb0a784... Author: Vincent Massol <[email protected]> Date: 2026-07-26 (Sun, 26 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-extension-handler-xar/pom.xml M xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-messagestream/xwiki-platform-legacy-messagestream-api/pom.xml A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/aspect/com/xpn/xwiki/api/UserCompatibilityAspect.aj A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/aspect/com/xpn/xwiki/user/api/XWikiUserCompatibilityAspect.aj A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/test/java/com/xpn/xwiki/api/UserTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/User.java M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/api/XWikiUser.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/api/UserTest.java M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/getusersandgroups.vm Log Message: ----------- XWIKI-22786: Update or mark method User#isUserInGroup as deprecated Deprecate com.xpn.xwiki.api.User#isUserInGroup(String) and com.xpn.xwiki.user.api.XWikiUser#isUserInGroup(String, XWikiContext) and move them to xwiki-platform-legacy-oldcore, which re-adds them by weaving xwiki-platform-oldcore with inter-type declarations. Both aspects are privileged since the methods use private members of the classes they are declared on. The recommended replacement is the org.xwiki.user.group.GroupManager component: unlike these methods it takes a group reference (and is thus not restricted to the current wiki) and it can optionally take sub-groups into account. The two remaining callers keep the current semantics (direct members only, so no behavior changes): * getusersandgroups.vm now uses the user.group script service. The current user reference is checked explicitly since it is null for the guest user. * GroupMessageStreamNotificationFilter is left untouched: since it is itself legacy code, its module now depends on xwiki-platform-legacy-oldcore rather than xwiki-platform-oldcore so that it still sees the deprecated method. xwiki-platform-oldcore itself skips Revapi because xwiki-platform-legacy-oldcore wraps it and runs the check on the woven jar, which still exposes both methods. Modules depending on it are checked against the unwoven jar though, and xwiki-platform-legacy-extension-handler-xar is the one module that exposes both classes in its API and therefore reported the two methods as removed. It now depends on xwiki-platform-legacy-oldcore too, so that its check also compares against the woven jar. That comparison is asymmetric until the next release, since the version it is compared against still depends on the unwoven jar, hence the two ignores for the inter-type declarations that only the woven jar has. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications