Skip to content

[4.x] Fix copy-paste bugs in Pages and Users - #20

Open
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-fix-copy-paste-bugs
Open

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-fix-copy-paste-bugs

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes copy-paste bugs in Pages and Users that sent wrong requests to the MediaWiki API:

Pages

  • editPage() sent the section number as sectiontitle.
  • movePageByName() and movePageByID() sent the reason as the target title (to).
  • rollback() sent the summary as expiry instead of summary.
  • changeProtection() requested an unblock token instead of a protect token.

Users

  • logout() called action=login.
  • getUserInfo() and getCurrentUserInfo() built usprop/uiprop without the =.
  • blockUser() called action=unblock and sent allowusetalk instead of allowusertalk.
  • assignGroup() requested an unblock token instead of userrights and sent username instead of user.

Each corrected request is covered by a new test.

Tests

vendor/bin/phpunit: 64 tests pass.

🤖 Generated with Claude Code

Corrects wrong parameter values and names (sectiontitle, to, summary, usprop=, uiprop=, allowusertalk, user), wrong token types (protect, userrights) and wrong actions (logout, block) in Pages and Users, with tests for each request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant