Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
27 Apr 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

As title says, this PR replaces the deprecated method call Factory::getUser() in SiteApplication and AdministratorApplication classes by getIdentity() method.

It is safe for this replacement because at very early application execution, it import behaviour and system plugins https://github.com/joomla/joomla-cms/blob/6.2-dev/libraries/src/Application/CMSApplication.php#L305. Inside these code, Joomla calls Factory::getUser() and at that time, session is started and it trigger this method https://github.com/joomla/joomla-cms/blob/6.2-dev/libraries/src/Application/WebApplication.php#L355 which loads current user into application.

In short, the user object is loaded into application identity at very early state in application life cycle, so it is safe to use getIdentity method to get current user instead of using deprecated method Factory::getUser() for site, admin and api applications.

Testing Instructions

  • Use Joomla 6.2
  • Apply patch
  • Access to random pages in frontend of your site and make sure nothing is broken

Actual result BEFORE applying this Pull Request

Works, but uses deprecated method call Factory::getUser()

Expected result AFTER applying this Pull Request

Works, without using deprecated method call Factory::getUser()

Link to documentations

Please select:

  • No documentation changes for guide.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar joomdonation joomdonation - open - 27 Apr 2026
avatar joomdonation joomdonation - change - 27 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Apr 2026
Category Libraries
avatar CSGoat0 CSGoat0 - test_item - 27 Apr 2026 - Tested successfully
avatar CSGoat0
CSGoat0 - comment - 27 Apr 2026

I have tested this item ✅ successfully on 14c5606


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

avatar CSGoat0
CSGoat0 - comment - 27 Apr 2026

I have tested this item ✅ successfully on 14c5606


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

avatar krishnagandhicode krishnagandhicode - test_item - 27 Apr 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 27 Apr 2026

I have tested this item ✅ successfully on 14c5606

No regressions observed in site/admin flows.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

avatar krishnagandhicode
krishnagandhicode - comment - 27 Apr 2026

I have tested this item ✅ successfully on 14c5606

No regressions observed in site/admin flows.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

avatar alikon alikon - change - 27 Apr 2026
Status Pending Ready to Commit
avatar alikon
alikon - comment - 27 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

avatar alikon
alikon - comment - 27 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47698.

Add a Comment

Login with GitHub to post a comment