Page MenuHomePhorge
Feed All Stories

May 17 2023

valerio.bozzolan added a comment to T15400: Unable to arc-diff against this install.

I say this, since we are receiving Diffs from many other people without issues it seems:

May 17 2023, 14:21 · phorge.it install
valerio.bozzolan added a comment to T15400: Unable to arc-diff against this install.

Are you 100% sure that you are communicating with this upstream?

May 17 2023, 14:19 · phorge.it install
valerio.bozzolan added a comment to D25230: Fix PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item.

Just to note that, if we will be able to crash this, here is the candidate resolution:

May 17 2023, 08:14
valerio.bozzolan added a comment to T15399: PHP 8.2 strlen() null issues when arc-diffing.

Just a clarification: can we reproduce these issues? Can that repository be shared, or part of it, to reproduce this?

May 17 2023, 07:44 · Clarification Needed, PHP 8 support
boovember updated boovember.
May 17 2023, 01:14

May 15 2023

avivey added a comment to D25230: Fix PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item.

TBH, I'm confused about $xaction being treated as an array in line 126.

May 15 2023, 20:57
avivey added a comment to T15364: arc land complaints summary by FreeBSD community.

"tooling for chains of diffs" might need its own topic, with a design of the what the whole thing should look like in an ideal world, and how to get to it.
Even if not all of the stuff fits nicely into Phorge, there's probably a lot that can work, and some conduit methods can be added to implement the rest.

May 15 2023, 20:07 · Arcanist, Differential, Affects-FreeBSD
ton added a comment to T15364: arc land complaints summary by FreeBSD community.

Chaining Diffs is something that we would like to use more often, and it is definitely not used enough today. FreeBSD is a large codebase and making any change that is bigger than trivial often involves touching multiple parts of the system, the most difficult kind of change is architectural changes. We are limited by our tooling to a certain degree:

  • Keeping everything in one Diff makes it very difficult to review as well as reach consensus, as there are often multiple responsible parties involved. It also violates the ethos of Phab/Phorge of having small atomic changes.
  • Breaking changes down in smaller chunks has lots of downsides too - it is very hard to track and changes often get lost in depths of Differential.
May 15 2023, 19:55 · Arcanist, Differential, Affects-FreeBSD
avivey added a project to T15399: PHP 8.2 strlen() null issues when arc-diffing: PHP 8 support.
May 15 2023, 19:48 · Clarification Needed, PHP 8 support
arnold created T15400: Unable to arc-diff against this install.
May 15 2023, 19:47 · phorge.it install
avivey added a comment to T15364: arc land complaints summary by FreeBSD community.

mmm... I've never really worked where many changes are made of lots of dependent revisions - it's possible I've never even seen a chain of 3 revisions in the same repo. So I'm not sure about workflows for this kind of scenarios.

May 15 2023, 19:43 · Arcanist, Differential, Affects-FreeBSD
bsdimp added a comment to T15364: arc land complaints summary by FreeBSD community.

Yea, today I have about 50 lines of shell scripting that gets the different bits of data from the condon API point and then bashes them into a nearly acceptable commit message....

May 15 2023, 19:37 · Arcanist, Differential, Affects-FreeBSD
arnold created T15399: PHP 8.2 strlen() null issues when arc-diffing.
May 15 2023, 19:36 · Clarification Needed, PHP 8 support
avivey added a comment to T15364: arc land complaints summary by FreeBSD community.

Ok, so here's my thoughts on moving this forward:

May 15 2023, 06:56 · Arcanist, Differential, Affects-FreeBSD

May 14 2023

aklapper requested review of D25230: Fix PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item.
May 14 2023, 10:17
aklapper added a revision to T15398: PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item: D25230: Fix PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item.
May 14 2023, 10:17 · PHP 8 support
aklapper created T15398: PHP 8.1 "strlen(null)" exception trying to create an empty Menu Item.
May 14 2023, 10:16 · PHP 8 support

May 13 2023

aklapper updated the diff for D25227: Fix PHP 8.1 "strlen(null)" exception which blocks rendering "Browse Dashboards" dialog.

Uh, that unit test was useful indeed, and I know understand the rest of the code.

May 13 2023, 23:59
valerio.bozzolan requested changes to D25227: Fix PHP 8.1 "strlen(null)" exception which blocks rendering "Browse Dashboards" dialog.
May 13 2023, 22:54
aklapper added a comment to T15372: "RuntimeException: Undefined array key" when pasting "a {{{a}}} a" comment (due to regex in PhutilRemarkupInterpreterBlockRule.php).

Historical commits with some comments about that regex: https://secure.phabricator.com/D7338, https://secure.phabricator.com/D7012

May 13 2023, 18:20 · Bug Reports
aklapper removed a project from T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4: Affects-Wikimedia.

It might make sense to look into https://secure.phabricator.com/T13588 and https://secure.phabricator.com/D21862

May 13 2023, 18:14 · PHP 8 support
aklapper requested review of D25229: Fix PHP 8.1 "explode(null)" exception which blocks rendering "Provide Multi-Factor Credentials" page.
May 13 2023, 13:48
aklapper added a revision to T15397: PHP 8.1 "explode(null)" exception blocks rendering "Provide Multi-Factor Credentials" page: D25229: Fix PHP 8.1 "explode(null)" exception which blocks rendering "Provide Multi-Factor Credentials" page.
May 13 2023, 13:48 · PHP 8 support
aklapper created T15397: PHP 8.1 "explode(null)" exception blocks rendering "Provide Multi-Factor Credentials" page.
May 13 2023, 13:43 · PHP 8 support
aklapper added a comment to T15378: PhabricatorApplicationTransactionStructureException trying to mute File notifications: "Attempting to apply a transaction which has not been constructed correctly".

Same behavior for "Mute Notifications" on http://phorge.localhost/legalpad/view/1/ with same stacktrace:

[2023-05-13 10:48:02] EXCEPTION: (PhabricatorApplicationTransactionStructureException) Attempting to apply a transaction (of class "LegalpadTransaction", with type "core:edge") which has not been constructed correctly: Transaction has type "core:edge", but that transaction type is not supported by this editor (LegalpadDocumentEditor). at [<phorge>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1830]
arcanist(head=master, ref.master=c14785c3795c), phorge(head=conduitEatMoreKittens, ref.master=2df7ea13a387, ref.conduitEatMoreKittens=2df7ea13a387)
  #0 <#2> PhabricatorApplicationTransactionEditor::validateEditParameters(LegalpadDocument, array) called at [<phorge>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1209]
  #1 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(LegalpadDocument, array) called at [<phorge>/src/applications/subscriptions/controller/PhabricatorSubscriptionsMuteController.php:58]
  #2 <#2> PhabricatorSubscriptionsMuteController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #3 phlog(PhabricatorApplicationTransactionStructureException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #4 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, PhabricatorApplicationTransactionStructureException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #5 AphrontApplicationConfiguration::handleThrowable(PhabricatorApplicationTransactionStructureException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
May 13 2023, 13:29 · Bug Reports
aklapper requested review of D25228: Fix PHP 8.1 exception in Conduit: Make "array_fuse(array $list)" accept null as parameter.
May 13 2023, 13:28
aklapper added a revision to T15393: PHP 8.1 "array_fuse(null)" exception blocks rendering Conduit's "Method Call Result" page: D25228: Fix PHP 8.1 exception in Conduit: Make "array_fuse(array $list)" accept null as parameter.
May 13 2023, 13:28 · PHP 8 support
aklapper abandoned D25225: Fix PHP 8.1 "array_fuse(null)" exception which blocks rendering Conduit's "Method Call Result" page.

Uh right, that makes way more sense to cover numerous such cases in Arcanist instead of playing whack-a-mole in Phorge Conduit. Thanks!

May 13 2023, 13:21
aklapper updated the diff for D25176: Fix PHP 8.1 "strlen(null)" exception which blocks creating a project with an empty Description field.

Use phutil_nonempty_stringlike; update doc comment.

May 13 2023, 11:47
aklapper requested review of D25227: Fix PHP 8.1 "strlen(null)" exception which blocks rendering "Browse Dashboards" dialog.
May 13 2023, 11:25
aklapper added a revision to T15396: PHP 8.1 "strlen(null)" exception blocks rendering "Browse Dashboards" dialog: D25227: Fix PHP 8.1 "strlen(null)" exception which blocks rendering "Browse Dashboards" dialog.
May 13 2023, 11:24 · PHP 8 support
aklapper created T15396: PHP 8.1 "strlen(null)" exception blocks rendering "Browse Dashboards" dialog.
May 13 2023, 11:23 · PHP 8 support
aklapper requested review of D25226: Fix PHP 8.1 "strlen(null)" exceptions which block rendering Legalpad signatures.
May 13 2023, 11:04
aklapper added a revision to T15395: PHP 8.1 "strlen(null)" exceptions block rendering Legalpad signatures: D25226: Fix PHP 8.1 "strlen(null)" exceptions which block rendering Legalpad signatures.
May 13 2023, 11:04 · PHP 8 support
aklapper created T15395: PHP 8.1 "strlen(null)" exceptions block rendering Legalpad signatures.
May 13 2023, 11:03 · PHP 8 support
avivey added a comment to D25225: Fix PHP 8.1 "array_fuse(null)" exception which blocks rendering Conduit's "Method Call Result" page.

I think we can just have array_fuse() accept null and return an empty list, because it's only there to simplify calling sites.

May 13 2023, 10:08
aklapper closed T15394: embedslowvote as Invalid.

Argh, sorry, misclicked.

May 13 2023, 02:26
aklapper created T15394: embedslowvote.
May 13 2023, 02:26
aklapper requested review of D25225: Fix PHP 8.1 "array_fuse(null)" exception which blocks rendering Conduit's "Method Call Result" page.
May 13 2023, 01:40
aklapper added a revision to T15393: PHP 8.1 "array_fuse(null)" exception blocks rendering Conduit's "Method Call Result" page: D25225: Fix PHP 8.1 "array_fuse(null)" exception which blocks rendering Conduit's "Method Call Result" page.
May 13 2023, 01:40 · PHP 8 support
aklapper created T15393: PHP 8.1 "array_fuse(null)" exception blocks rendering Conduit's "Method Call Result" page.
May 13 2023, 01:37 · PHP 8 support

May 12 2023

aklapper requested review of D25224: Fix PHP 8.1 "trim(null)" exception which blocks rendering Reports' Burnup Rate page.
May 12 2023, 22:08
aklapper added a revision to T15392: PHP 8.1 "trim(null)" exception blocks rendering Reports' Burnup Rate page: D25224: Fix PHP 8.1 "trim(null)" exception which blocks rendering Reports' Burnup Rate page.
May 12 2023, 22:08 · PHP 8 support
aklapper created T15392: PHP 8.1 "trim(null)" exception blocks rendering Reports' Burnup Rate page.
May 12 2023, 22:07 · PHP 8 support
aklapper requested review of D25223: Fix PHP 8.1 "strlen(null)" exception which blocks task Bulk Editor page.
May 12 2023, 21:46
aklapper added a revision to T15391: PHP 8.1 "strlen(null)" exception blocks task Bulk Editor page: D25223: Fix PHP 8.1 "strlen(null)" exception which blocks task Bulk Editor page.
May 12 2023, 21:46 · PHP 8 support
aklapper created T15391: PHP 8.1 "strlen(null)" exception blocks task Bulk Editor page.
May 12 2023, 21:45 · PHP 8 support
aklapper added a comment to D25222: Fix PHP 8.1 "strlen(null)" exception setting Story Points on a Task.

lol, maybe makes more sense just to remove this three lines instead of blindly replacing a function call? :P

May 12 2023, 21:27
aklapper requested review of D25222: Fix PHP 8.1 "strlen(null)" exception setting Story Points on a Task.
May 12 2023, 21:21
aklapper added a revision to T15390: PHP 8.1 "strlen(null)" exception setting story points on a task: D25222: Fix PHP 8.1 "strlen(null)" exception setting Story Points on a Task.
May 12 2023, 21:21 · PHP 8 support
aklapper created T15390: PHP 8.1 "strlen(null)" exception setting story points on a task.
May 12 2023, 21:20 · PHP 8 support
aklapper updated the diff for D25175: Fix PHP 8.1 "strlen(null)" and "explode()" exceptions which block rendering Administrator Account Creation page.

Add minimal strict short-circuit check as proposed by Valerio

May 12 2023, 21:06
valerio.bozzolan awarded Image Macro "whatcouldgowrong" a Yellow Medal token.
May 12 2023, 19:43
valerio.bozzolan closed T15385: Fix Almanac page /almanac/interface/edit/1/, a subtask of T15365: PHP 8.1 "strlen(null)" exception blocks rendering error pages for Packages' Create Package and Fund's Create Initiative, as Resolved.
May 12 2023, 19:37 · PHP 8 support
valerio.bozzolan closed T15385: Fix Almanac page /almanac/interface/edit/1/ as Resolved by committing rP2df7ea13a387: PhabricatorModularTransactionType: fix regression.
May 12 2023, 19:37 · Bug Reports, PHP 8 support
valerio.bozzolan closed D25220: PhabricatorModularTransactionType: fix regression.
May 12 2023, 19:37
valerio.bozzolan committed rP2df7ea13a387: PhabricatorModularTransactionType: fix regression.
May 12 2023, 19:37
avivey accepted D25220: PhabricatorModularTransactionType: fix regression.

whatcouldgowrong

May 12 2023, 18:37
avivey created Image Macro "whatcouldgowrong".
May 12 2023, 18:37
arnold accepted D25220: PhabricatorModularTransactionType: fix regression.

lgtm

May 12 2023, 17:29
valerio.bozzolan added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

Hi @aklapper could you please confirm that you are also affected by this? Then feel free to review D25220 - thanks

May 12 2023, 17:23 · Bug Reports, PHP 8 support
aklapper requested review of D25221: Fix PHP 8.1 exceptions which block adding an embedded File preview as a Comment.
May 12 2023, 17:22
aklapper added a revision to T15389: PHP 8.1 exceptions block adding an embedded file preview as a comment: D25221: Fix PHP 8.1 exceptions which block adding an embedded File preview as a Comment.
May 12 2023, 17:22 · PHP 8 support
valerio.bozzolan added inline comments to D25220: PhabricatorModularTransactionType: fix regression.
May 12 2023, 17:21
aklapper created T15389: PHP 8.1 exceptions block adding an embedded file preview as a comment.
May 12 2023, 17:19 · PHP 8 support
valerio.bozzolan added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

Hi @arnold please visit the patch D25220 and feel free to test again and share again your opinion (eventually marking that as "Accept Revision"), just to be 100% sure

May 12 2023, 17:10 · Bug Reports, PHP 8 support
valerio.bozzolan requested review of D25220: PhabricatorModularTransactionType: fix regression.
May 12 2023, 17:07
valerio.bozzolan added a revision to T15385: Fix Almanac page /almanac/interface/edit/1/: D25220: PhabricatorModularTransactionType: fix regression.
May 12 2023, 17:07 · Bug Reports, PHP 8 support
aklapper requested review of D25219: Fix PHP 8.1 "strlen(null)" exceptions which block adding 2FA factor.
May 12 2023, 17:06
aklapper added a revision to T15388: PHP 8.1 "strlen(null)" exceptions block adding 2FA factor: D25219: Fix PHP 8.1 "strlen(null)" exceptions which block adding 2FA factor.
May 12 2023, 17:06 · PHP 8 support
aklapper attached a referenced file: F289083: Screenshot from 2023-05-12 18-54-18.png.
May 12 2023, 17:06
aklapper created T15388: PHP 8.1 "strlen(null)" exceptions block adding 2FA factor.
May 12 2023, 17:05 · PHP 8 support
aklapper created T15387: Multi-Factor Auth setup dialog shows three times same option.
May 12 2023, 16:55
valerio.bozzolan updated the task description for T15385: Fix Almanac page /almanac/interface/edit/1/.
May 12 2023, 16:54 · Bug Reports, PHP 8 support
aklapper updated the task description for T15386: PHP 8.1 "strlen(null)" exception blocks rendering MFA Provider page.
May 12 2023, 16:52 · PHP 8 support
aklapper requested review of D25218: Fix PHP 8.1 "strlen(null)" exception which blocks rendering MFA Provider page.
May 12 2023, 16:50
aklapper added a revision to T15386: PHP 8.1 "strlen(null)" exception blocks rendering MFA Provider page: D25218: Fix PHP 8.1 "strlen(null)" exception which blocks rendering MFA Provider page.
May 12 2023, 16:50 · PHP 8 support
valerio.bozzolan added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

Thanks. I've patched that blindly but now I'm also able to reproduce and I also can confirm this fixes the regression.

May 12 2023, 16:48 · Bug Reports, PHP 8 support
arnold added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

@valerio.bozzolan I can verify that the proposed patch works for me

May 12 2023, 16:47 · Bug Reports, PHP 8 support
aklapper created T15386: PHP 8.1 "strlen(null)" exception blocks rendering MFA Provider page.
May 12 2023, 16:47 · PHP 8 support
valerio.bozzolan added inline comments to D25202: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for Packages' Create Package and Fund's Create Initiative.
May 12 2023, 16:44
valerio.bozzolan updated the task description for T15385: Fix Almanac page /almanac/interface/edit/1/.
May 12 2023, 16:43 · Bug Reports, PHP 8 support
arnold added inline comments to D25202: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for Packages' Create Package and Fund's Create Initiative.
May 12 2023, 16:43
valerio.bozzolan added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

I was able to have that page working with:

May 12 2023, 16:25 · Bug Reports, PHP 8 support
valerio.bozzolan added a comment to T15385: Fix Almanac page /almanac/interface/edit/1/.

(taken from https://we.phorge.it/T15064#8743)

May 12 2023, 16:20 · Bug Reports, PHP 8 support
valerio.bozzolan updated the task description for T15385: Fix Almanac page /almanac/interface/edit/1/.
May 12 2023, 16:08 · Bug Reports, PHP 8 support
valerio.bozzolan raised a concern with rP1b08be518ef6: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for….

T15385: Fix Almanac page /almanac/interface/edit/1/

May 12 2023, 16:06
valerio.bozzolan triaged T15385: Fix Almanac page /almanac/interface/edit/1/ as Unbreak Now! priority.
May 12 2023, 16:06 · Bug Reports, PHP 8 support
valerio.bozzolan added a member for Trusted Contributors: arnold.
May 12 2023, 16:01
valerio.bozzolan added inline comments to D25202: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for Packages' Create Package and Fund's Create Initiative.
May 12 2023, 16:01
valerio.bozzolan added a comment to D25202: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for Packages' Create Package and Fund's Create Initiative.

Fantastic, the method is called isEmptyTextTransaction() but handles integers

May 12 2023, 15:47
arnold added a comment to D25202: Fix PHP 8.1 "strlen(null)" exception which blocks rendering error pages for Packages' Create Package and Fund's Create Initiative.

When editing almanac hosts, I get this: (url /almanac/interface/edit/1/)

May 12 2023, 15:39
arnold added a comment to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4.

This is a good example of why fixing each case individually might be a bad idea, this fix was from D25202. It appears the old strlen allowed for integers too...

May 12 2023, 15:38 · PHP 8 support
arnold added a comment to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4.

@valerio.bozzolan Here's a small sampling of all the errors that I encountered (I fixed each of them and got to the next one): https://we.phorge.it/P10

May 12 2023, 15:10 · PHP 8 support
arnold created P10 (An Untitled Masterwork).
May 12 2023, 15:09
arnold added a comment to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4.

@valerio.bozzolan You know, I went on a spree fixing this in my local checkout. But it's super spread out all throughout the repo. The current master is broken even when I just view a revision. Then there are issues that show up in the SSH auth code when trying to push where the stack trace gets hidden (and it'll say something about ENORMOUS CHANGES, but that's a lie)

May 12 2023, 15:04 · PHP 8 support
valerio.bozzolan added a comment to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4.

Thanks @arnold but please also share your error logs with us, otherwise we cannot fix :)

May 12 2023, 15:00 · PHP 8 support
arnold updated arnold.
May 12 2023, 14:56
arnold added a comment to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4.

Re: all the null errors.

May 12 2023, 14:50 · PHP 8 support
valerio.bozzolan added a comment to D25148: Config page: add lovely git-related error messages in standard error log.

@aklapper Very probably, with this patch, now the log shows a resolution message with a fix to your issue

May 12 2023, 11:34