Commit Graph
4 Commits
Author SHA1 Message Date
Isaac ConnorandClaude Opus 5.5 83c734d473 test: PHP test stubs know the helpers and include path merged code now uses
Twenty tests in tests/php failed on master after PRs that each passed on
their own landed together: code under test started calling a helper, or
loading a file, that these tests' stand-ins didn't provide.

- validCardinal(): actions/group.php, actions/controlcap.php and
  ajax/reports.php deleteRequest() reduce request ids with it (#7800).
  The five group save tests, the controlcap test and the reports delete
  test now carry a copy of it.
- ZM\scalar_values_differ(): Object.php changes() compares with it
  (#7774). The group, storage, user and zmtrack tests that load
  Object.php now carry a copy.
- authHashTtl(): generateAuthHash() takes its freshness limit from it
  (#8367). test_auth_hash_slot_age lifts it out of auth.php alongside
  generateAuthHash().
- includes/log_redact.php: ajax/status.php requires it relative to web/
  (#7930). The five status tests put web/ on the include path before
  including status.php, as the web server's working directory does.
- test_reports_ajax_forged_id: deleteRequest() now reports a delete()
  that returns false (#7820), and the stub Report::delete() returned
  nothing, so it returns true.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:38:08 -05:00
Jash Ambaliya 6f15c64347 fix: status ajax refuses event, frame and near-event requests for an event whose monitor the user cannot view (#7561)
* fix: status ajax refuses event, frame and near-event requests for an event whose monitor the user cannot view refs #7560

* fix: status event checks use the cleaned id the query binds and refuse a missing event refs #7560
2026-11-25 18:18:38 -05:00
Jash a8cd088df4 fix: frame TimeStampShort uses a MySQL format and the frame's own time refs #6563 2026-11-17 10:02:34 +05:30
Jash da07e5def3 fix: handle scalar and array request params in events/status ajax, page the last slow-path page and skip deleted monitors in counts refs #6413 2026-11-16 14:55:08 +05:30