Skip to content

ETT-1410 advanced search causing error 505#134

Merged
moseshll merged 1 commit into
mainfrom
ETT-1410_ssd_error
Apr 8, 2026
Merged

ETT-1410 advanced search causing error 505#134
moseshll merged 1 commit into
mainfrom
ETT-1410_ssd_error

Conversation

@moseshll

@moseshll moseshll commented Apr 8, 2026

Copy link
Copy Markdown
Contributor
  • The catalog is basically broken for all ssdusers because ping sets the HTStatus cookie u field to true but does not provide any activated role names in the r field. It's just the way ping works.
  • RecordUtils->ht_link_data_from_json would blindly call array_keys on a NULL value in that case.
  • Now check $htstatus->r and the count of its keys before trying extract the role name from it.
  • Add a test with simulated ssduser.

Staged on dev-2

- The catalog is basically broken for all `ssduser`s because `ping` sets the HTStatus cookie
`u` field to `true` but does not provide any activated role names in the `r` field.
It's just the way `ping` works.
- `RecordUtils->ht_link_data_from_json` would blindly call `array_keys` on a `NULL` value in that case.
- Now check `$htstatus->r` and the count of its keys before trying extract the role name from it.
- Add a test with simulated `ssduser`.
@moseshll moseshll requested a review from carylwyatt April 8, 2026 16:31

@aelkiss aelkiss left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me on dev-2 with role set to ssduser. Let's go ahead and merge & deploy ASAP.

Comment thread test/RecordUtilsTest.php
@moseshll moseshll removed the request for review from carylwyatt April 8, 2026 17:49
@moseshll moseshll merged commit 9ab9cd2 into main Apr 8, 2026
2 checks passed
@moseshll moseshll deleted the ETT-1410_ssd_error branch April 8, 2026 17:50
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.

2 participants