Skip to content

Conversation

@alikon
Copy link
Contributor

@alikon alikon commented Sep 9, 2023

Pull Request for Issue #41681 .

Summary of Changes

fix PATCH user alters password

Testing Instructions

#41681

Actual result BEFORE applying this Pull Request

after PATCH unable to login for that user

Expected result AFTER applying this Pull Request

able to login

PATCH user alters password
@hefferbub
Copy link

I have tested this item ✅ successfully on bf01492

Tested by replacing the one changed source file on a stock 4.3.4 installation and the fix worked as expected.


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

@laoneo
Copy link
Member

laoneo commented Sep 11, 2023

Can you rebase this to 4.4 and add a system test?

@alikon alikon changed the base branch from 4.3-dev to 4.4-dev September 12, 2023 17:26
@alikon
Copy link
Contributor Author

alikon commented Sep 12, 2023

rebased to 4.4
for the system test... 🤕 in the week-end or so

@laoneo
Copy link
Member

laoneo commented Sep 15, 2023

I don't like the mix of api tests with front end tests. Can this not be tested somehow differently if the password works?

@laoneo laoneo added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Sep 15, 2023
@alikon
Copy link
Contributor Author

alikon commented Sep 15, 2023

probably yes, but How ?

@MacJoom
Copy link
Contributor

MacJoom commented Sep 18, 2023

we would need to add an webservices rest api function to test the password

@laoneo laoneo self-assigned this Sep 18, 2023
@wilsonge
Copy link
Contributor

probably yes, but How ?

Just directly query the database. We don't really care about the raw password. Just the hash is unchanged before and after the webservice request.

@laoneo laoneo removed the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Sep 26, 2023
@laoneo laoneo added this to the Joomla! 4.4.0 milestone Sep 26, 2023
@laoneo laoneo merged commit 61d43db into joomla:4.4-dev Sep 26, 2023
@laoneo
Copy link
Member

laoneo commented Sep 26, 2023

Thanks!

@alikon alikon deleted the patch-20 branch September 26, 2023 12:00
HLeithner pushed a commit that referenced this pull request Sep 26, 2023
* Added api test for user field group (#41850)

* Added api test for user field group (#41851)

* system test com_config webservices (#41765)

* system test com_config

* id

* divideandrollback

* grr

* rollback

---------

Co-authored-by: Allon Moritz <[email protected]>

* [4.3] WebauthnField missing translation (#41723)

* redo of #41520 (#41856)

* [4.4] add system tests for admin users (group/level) (#41910)

* Use $document variable (#41917)

* redirect (#41912)

* Cypress test for com_privacy admin (#41834)

* Cypress test for com_privacy admin

* Update Consent.cy.js

* [4.4] 500 error when 404 and debug on (#41893)

* fix

* missed new params

* [4] Mismatched tag ids/tag names in articles webservice/api (#41397)

* Mismatched tag ids/tag names in articles webservice/api

* redone

* new function

* use the new helper function

* cs

---------

Co-authored-by: Martin Carl Kopp <[email protected]>

* [4.4] Joomla Update Component check package when using Upload & Update (#41757)

* Add checks of uploaded file to com_joomlaupdate

* Use global namespace

* Simplify language strings

* Remove the major version check

* Fix doc block of new method

* Language string improvements - thanks Brian

Co-authored-by: Brian Teeman <[email protected]>

* Only check if zip PHP extension is loaded

* Check manifest XML instead of Version.php

* English improvements

* Remove empty line from language file

Co-authored-by: George Wilson <[email protected]>

* Add alternative method if no zip PHP extension

* Do it as elswehere

* Remove unsupported compression method

* Make sure file is opened as binary file

* Remove special version suffix for pull request patched packages

* Move version check to own method

* Read chunks of max. 1MiB from central directory

* Fix method name and calls

* Fix code from tests with a CLI script

* Add code comments

* Small code simplification

* Fix empy manifest XML file handling

* Handle empty manifest file and start of file

* Fix method description comment

* Close file when throwing exceptions while open

* Fix typo in code comment

* Fix code comment.

Co-authored-by: Quy <[email protected]>

* Language string consistency

---------

Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: George Wilson <[email protected]>
Co-authored-by: Allon Moritz <[email protected]>
Co-authored-by: Quy <[email protected]>

* Update template.es6.js (#41909)

Optional chaining fix

* Add build tool to check ruleset.xml for obsolete exclude patterns and optionally fix the file (#40278)

* Add tool to check ruleset.xml for obsolete exclude patterns

* Fix PHPCS

* Add option to fix the XML file

* Rename to check_ruleset_xml.php

* Better help text for default value

* Fix comment, too

* [4][webservice] user patch (#41688)

* [4] webservice com_user patch

PATCH user alters password

* system test

---------

Co-authored-by: Allon Moritz <[email protected]>

* Update tests/System/integration/administrator/components/com_users/Groups.cy.js

Co-authored-by: heelc29 <[email protected]>

* Update tests/System/integration/administrator/components/com_users/Levels.cy.js

Co-authored-by: heelc29 <[email protected]>

* Use maximebf/debugbar v1.19.0 (#41931)

* Rebuild composer lock file

* Explanation why we mix UI with API tests

* Rebuild composer lock file because of webauth upgrade

* Fix code style

---------

Co-authored-by: rajputanuj31 <[email protected]>
Co-authored-by: Nicola Galgano <[email protected]>
Co-authored-by: heelc29 <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: andyforrest <[email protected]>
Co-authored-by: Denitz <[email protected]>
Co-authored-by: Martin Carl Kopp <[email protected]>
Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: George Wilson <[email protected]>
Co-authored-by: Quy <[email protected]>
Co-authored-by: Olivier Buisard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants