1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-28 06:29:27 +01:00
phorge-phorge/src/applications/transactions
Andre Klapper 6e88528370 Fix PHP 8.1 "strlen(null)" exception which blocks rendering list of Active/All projects
Summary:
`strlen()` was used in Phabricator to check if a generic value is a non-empty string.
This behavior is deprecated since PHP 8.1. Phorge adopts `phutil_nonempty_string()` as a replacement.

Note: this may highlight other absurd input values that might be worth correcting
instead of just ignoring. If phutil_nonempty_string() throws an exception in your
instance, report it to Phorge to evaluate and fix that specific corner case.

Closes T15312

Test Plan:
Applied this change (on top of D25144, D25145, D25146, D25147, D25151, D25152, D25153 and `/project/query/active/` rendered correctly in web browser.

Tested surfing various pages with and without Maniphest's `maniphest.subtypes`.

If you need some example custom fields, this is an example:

```
[
    {
      "key": "default",
      "name": "Task"
    },
    {
      "key": "bug",
      "name": "Bug"
    },
    {
      "key": "log",
      "name": "LogSpam"
    },
    {
      "key": "deadline",
      "name": "Deadline"
    }
  ]
```

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15312

Differential Revision: https://we.phorge.it/D25162
2023-05-01 15:55:42 +02:00
..
application
bulk Fix an issue where the "viewer" is not passed to Bulk Edit controls properly 2019-09-26 12:03:49 -07:00
commentaction When you "Request Review" of a draft revision, change the button text from "Submit Quietly" to "Publish Revision" 2018-11-15 20:50:21 -08:00
conduit Remove product literal strings in "pht()", part 8 2022-04-25 12:22:29 -07:00
constants Double-write file attachment to old "edge" storage and new "attachment" storage 2022-05-19 13:21:03 -07:00
controller Inline custom policy rules inside policy capability explanation dialogs 2019-09-12 09:40:50 -07:00
data Generate file attachment transactions for explicit Remarkup attachments on common edit pathways 2022-05-19 13:21:04 -07:00
draft
edges Remove file attachment edge types, including API access 2022-05-19 13:21:04 -07:00
editengine Fix PHP 8.1 "strlen(null)" exception which blocks rendering list of Active/All projects 2023-05-01 15:55:42 +02:00
editfield Fix PHP 8.1 "strlen(null)" exceptions which block rendering the Maniphest task creation page 2023-05-01 15:52:23 +02:00
editor Fix numerous PHP 8.1 "strlen(null)" exceptions trying to create a project 2023-04-29 14:41:20 +02:00
edittype Accept null via conduit.edit to unassign a task 2018-01-31 15:33:52 -08:00
engine Propagate the "ContextObject" to Remarkup rendering in timelines 2021-02-13 13:37:36 -08:00
engineextension Fix subtype extension support check 2021-08-20 18:49:35 -04:00
error
exception When users submit "editing" inlines, warn them that their inlines will be saved 2020-05-04 13:13:15 -07:00
feed Separate "feed" and "notifications" better, allow stories to appear in notifications only 2018-12-10 16:02:43 -08:00
herald Support "Subtype" in Herald 2019-09-12 14:34:06 -07:00
interface Allow inline comment storage objects to generate their own runtime objects 2020-05-07 15:57:49 -07:00
phid
query Provide a default "loadPage()" implementation on "CursorPagedPolicyAwareQuery" 2022-05-24 10:18:53 -07:00
replyhandler Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
response When users submit "editing" inlines, warn them that their inlines will be saved 2020-05-04 13:13:15 -07:00
storage Render all Removed Comments a little more docile 2023-04-06 14:46:35 +02:00
typeahead Support filtering feed transactions by object type 2019-05-21 12:39:10 -07:00
view Render all Removed Comments a little more docile 2023-04-06 14:46:35 +02:00
worker
xaction Fix incorrect construction of subtype map when validating "subtype" transactions against non-subtypable objects 2019-08-28 06:57:04 -07:00