RTC PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
14 Jul 2025

Summary of Changes

Fix deprecated parameters in cookie set method calls

trigger_deprecation(
'joomla/input',
'1.4.0',
'The %s($name, $value, $expire, $path, $domain, $secure, $httpOnly) signature is deprecated and'
. ' will not be supported once support'
. ' for PHP 7.2 and earlier is dropped, use the %s($name, $value, $options) signature instead',
__METHOD__,
__METHOD__
);

Testing Instructions

  • use remember me login function in frontend
  • logout

Further information: #45728 (comment)

Actual result BEFORE applying this Pull Request

old signature is used to set cookie
Joomla\CMS\Input\Cookie::set($name, $value, $expire, $path, $domain, $secure, $httpOnly)

Expected result AFTER applying this Pull Request

new signature is used to set cookie
Joomla\CMS\Input\Cookie::set($name, $value, $options)

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar heelc29 heelc29 - open - 14 Jul 2025
avatar heelc29 heelc29 - change - 14 Jul 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jul 2025
Category Libraries Front End Plugins
1b803c5 14 Jul 2025 avatar heelc29 cs
avatar heelc29 heelc29 - change - 14 Jul 2025
Labels Added: PR-5.4-dev
avatar exlemor
exlemor - comment - 18 Jul 2025

@heelc29 - During the Friday PR testing sessions, I was testing this PR, I have checked the Console --> Network --> Cookies BEFORE and AFTER applying the PR and I do not see anything different, what can I check/should I see to validate this test?

Also as I don't use the Remember Me feature (i.e. my browser offers up Username/Password combination natively), what is Remember me supposed to do because the behavior when I check the box or not is the same - I was expecting it like it does on other sites to remember my username (which it doesn't - perhaps because of the Safari browser overriding things with its native offering up of the Username/Password feature)...

Thanks.

Remember-me-BEFORE-PR Remember-me-AFTER-PR
avatar brianteeman
brianteeman - comment - 18 Jul 2025

the title of this PR and the description in the summary do not make sense with the code changes

avatar heelc29
heelc29 - comment - 18 Jul 2025

BEFORE and AFTER applying the PR and I do not see anything different, what can I check/should I see to validate this test?

Yes the cookies should be equal

Also as I don't use the Remember Me feature (i.e. my browser offers up Username/Password combination natively)

This function sets an additional cookie which do not expire with the session. If you close and open the browser, you are logged in without click the login button.
image

what can I check/should I see to validate this test?

@exlemor You have already done this: check if cookies are equal BEFORE and AFTER and deleted if you do logout
additional check the log file (activate it in Global Configuration) administrator\logs\deprecated.php - file may be very large
image
and check if you find something like this message - BEFORE: present; AFTER: gone (either delete the file or check the timestamp for the new entries after apply the patch):
deprecated Since joomla/input 1.4.0: The Joomla\CMS\Input\Cookie::set($name, $value, $expire, $path, $domain, $secure, $httpOnly) signature is deprecated and will not be supported once support for PHP 7.2 and earlier is dropped, use the Joomla\CMS\Input\Cookie::set($name, $value, $options) signature instead

the title of this PR and the description in the summary do not make sense with the code changes

Sometimes I have no idea how best to describe it. @brianteeman Suggestions are welcome

avatar heelc29 heelc29 - change - 18 Jul 2025
The description was changed
avatar heelc29 heelc29 - edited - 18 Jul 2025
avatar brianteeman
brianteeman - comment - 18 Jul 2025

@heelc29 I see now from the log message you just posted that what it should be saying is REPLACE or UPDATE not REMOVE and it would have helped if you described the old signature and the new signature

avatar richard67
richard67 - comment - 18 Jul 2025

Sometimes I have no idea how best to describe it. @brianteeman Suggestions are welcome

Maybe something like "[5.4] Fix deprecated cookie set method calls"?

And for the summary of changes: "Fix deprecated parameters in cookie set method calls"?

avatar heelc29 heelc29 - change - 18 Jul 2025
Title
[5.4] remove deprecation cookie set method
[5.4] Fix deprecated cookie set method calls
avatar heelc29 heelc29 - edited - 18 Jul 2025
avatar heelc29 heelc29 - change - 18 Jul 2025
The description was changed
avatar heelc29 heelc29 - edited - 18 Jul 2025
avatar exlemor exlemor - test_item - 18 Jul 2025 - Tested successfully
avatar exlemor
exlemor - comment - 18 Jul 2025

I have tested this item ✅ successfully on 1b803c5

I was able to test this successfully - thanks @heelc29 for the additional explanations (allowed me to retest more confidently).


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

avatar brianteeman brianteeman - test_item - 23 Jul 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 23 Jul 2025

I have tested this item ✅ successfully on 1b803c5

tested and no deprecation message in the logs after applying this PR


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

avatar richard67 richard67 - change - 23 Jul 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 23 Jul 2025

RTC


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

avatar muhme muhme - change - 23 Jul 2025
Labels Added: RTC
avatar muhme
muhme - comment - 23 Jul 2025

Final test before merge with: JBT, http, enabled Log Deprecated API; macOS Safari 18.5, Chrome 138, Firefox 141

  • Before applying this PR
    • Frontend remember me and log out is working in all three browsers
    • joomla_remember_me_* cookie exists and expires 2025-09-21
    • Multiple Cookie::set deprecated messages
  • After applying this PR
    • ✅ Frontend remember me and log out is working in all three browsers
    • joomla_remember_me_* cookie exists and expires 2025-09-21
    • ✅ no Cookie::set deprecated messages
avatar muhme muhme - change - 23 Jul 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-07-23 16:31:31
Closed_By muhme
avatar muhme muhme - close - 23 Jul 2025
avatar muhme muhme - merge - 23 Jul 2025
avatar muhme
muhme - comment - 23 Jul 2025

Thank you @heelc29 for your contribution. Thank you @exlemor and @brianteeman for testing.

avatar krishnaGandhi11 krishnaGandhi11 - test_item - 23 Jul 2025 - Tested successfully
avatar krishnaGandhi11
krishnaGandhi11 - comment - 23 Jul 2025

I have tested this item ✅ successfully on 82d5522

Tested successfully, works as expected!


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

avatar richard67
richard67 - comment - 23 Jul 2025

@krishnaGandhi11 Thanks for testing. However, this PR is already merged, so no need for testing anymore.

Add a Comment

Login with GitHub to post a comment