Page MenuHomePhorge
Feed All Stories

Jul 26 2024

valerio.bozzolan added a comment to D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

Yup. Laaaand

Jul 26 2024, 20:37
aklapper added a comment to D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

The $password variable is not a string anymore in the line after. I guess it's not much more expensive to check if the string $username is nonempty versus comparing to a boolean value

Jul 26 2024, 19:31
valerio.bozzolan added a comment to T15879: Documentation: Macro image rendered instead of keyword when names match.

As temporary Phorge workaround, we may want to document these email keywords rendered as "progress". So we can just manually add backtics (?)

Jul 26 2024, 19:19
aklapper added a comment to T15879: Documentation: Macro image rendered instead of keyword when names match.

Quick notes:

  • For testing code changes, make sure to ./bin/cache purge --caches remarkup
  • rPcc44ae32c546: Remove obsolete "setDisableMacros()" on "PhabricatorRemarkupControl" once upon a time existed, could provide a base
    • But how to even realize/pass the info that we are rendering strings in a documentation context?
  • PhutilRemarkupRule has a isFlatText($text) method but no setFlatText(true) method
  • PhutilRemarkupSimpleTableBlockRule::markupText() is handling our $cell which has the meme/macro name as its only string content
  • Afterwards, PhabricatorMemeRemarkupRule:apply() is the next step being called
Jul 26 2024, 17:56
valerio.bozzolan accepted D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.

Thaaaanks. I wonder why $has_password has a dedicated variable, and instead $has_username has not 🤔

Jul 26 2024, 16:09
aklapper updated the task description for T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Jul 26 2024, 14:50 · PHP 8 support
aklapper requested review of D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 26 2024, 14:46
aklapper added a revision to T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password: D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Jul 26 2024, 14:46 · PHP 8 support
aklapper created T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Jul 26 2024, 14:43 · PHP 8 support
aklapper closed D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 26 2024, 11:48
aklapper committed rP903015312a0b: Remove unused parameter from PhabricatorDaemonController::buildSideNavView()….
Remove unused parameter from PhabricatorDaemonController::buildSideNavView()…
Jul 26 2024, 11:48
valerio.bozzolan added a comment to D25118: Remarkup: make less internal links open in new tabs.

Flagging all comments as done (but feel free to share other things)

Jul 26 2024, 10:43
valerio.bozzolan added a comment to D25118: Remarkup: make less internal links open in new tabs.

Thanks again @speck. This is probably useful to answer your performance question:

Jul 26 2024, 10:41
valerio.bozzolan accepted D25711: Suppress PHP 8.1 warnings "Return type mixed is not covariant with tentative return type mixed of method Iterator::key()".

😐

Jul 26 2024, 10:21
valerio.bozzolan accepted D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 26 2024, 10:11
aklapper closed D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 26 2024, 10:06
aklapper committed rPc5c2b8ce5a67: Remove unused parameter from PhabricatorMailEmailEngine….
Remove unused parameter from PhabricatorMailEmailEngine…
Jul 26 2024, 10:06
valerio.bozzolan accepted D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 26 2024, 10:02
arp asked Q144: Support for arc work T12345 (workOnTask workflow).
Jul 26 2024, 09:00 · Feature Requests, Arcanist
aklapper closed D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Jul 26 2024, 08:24
aklapper committed rP4e31cadb54d2: Remove unused parameter from PhabricatorConfigConsoleController….
Remove unused parameter from PhabricatorConfigConsoleController…
Jul 26 2024, 08:24
valerio.bozzolan accepted D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.

Thanks. It seems that line 17 impose edit capability. Also, appendForm() does not accept a null.

Jul 26 2024, 07:25
valerio.bozzolan accepted D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.

I cannot imagine any situation where the incoming viewer from handleRequest(AphrontRequest $request) could be different from the implicit viewer from AphrontController#getViewer() ($this->getRequest()->getViewer()).

Jul 26 2024, 07:09

Jul 25 2024

aklapper requested review of D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Jul 25 2024, 18:34
aklapper retitled D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call from Remove parameter from PhabricatorDaemonController::buildSideNavView() call
Jul 25 2024, 13:56
aklapper requested review of D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Jul 25 2024, 13:54
aklapper requested review of D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Jul 25 2024, 13:50
aklapper requested review of D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code.
Jul 25 2024, 13:43
aklapper requested review of D25743: Fix stripping headers from proxy requests to other cluster nodes.
Jul 25 2024, 13:31
aklapper closed D25741: Fix undefined variable in HeraldAction.
Jul 25 2024, 12:41
aklapper committed rP0b93685cc999: Fix undefined variable in HeraldAction.
Fix undefined variable in HeraldAction
Jul 25 2024, 12:41
valerio.bozzolan added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

Thanks. What happens in older Apache2 versions?

Nothing. :) This issue only popped up in our error logs after an Apache update.

Jul 25 2024, 10:15
valerio.bozzolan accepted D25741: Fix undefined variable in HeraldAction.

sgtm

Jul 25 2024, 10:12

Jul 24 2024

aklapper requested review of D25742: Fix non-existing log method in HarbormasterManagementRestartWorkflow.
Jul 24 2024, 16:36
aklapper requested review of D25741: Fix undefined variable in HeraldAction.
Jul 24 2024, 15:48
valerio.bozzolan updated the name of F2328200: Phorge post-commit Audit review.png from "image.png" to "Phorge post-commit Audit review.png".
Jul 24 2024, 09:29
valerio.bozzolan created T15892: Post-Commit Audit review: authors cannot "Raise Concern".
Jul 24 2024, 09:27 · Discussion Needed, Bug Reports, Diffusion

Jul 23 2024

20after4 added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

I think line 392 should be:

Jul 23 2024, 21:15
aklapper updated subscribers of T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

Not sure if @20after4 has any opinions on this? :) For the records, the code looked like this before this last change: https://we.phorge.it/source/phorge/browse/master/src/applications/config/check/PhabricatorMySQLSetupCheck.php;a41d158490c0cd0a0454653473c39f7ad2b5954f$381-384

Jul 23 2024, 20:25
valerio.bozzolan added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

Ah. Maybe PhabricatorSearchHost should extend PhabricatorSearchService? Boh

Jul 23 2024, 13:53
valerio.bozzolan added a comment to T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().

I don't get this 🤔

Jul 23 2024, 13:51
aklapper created T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().
Jul 23 2024, 13:24
aklapper added a comment to T15378: PhabricatorApplicationTransactionStructureException trying to mute File notifications: "Attempting to apply a transaction which has not been constructed correctly".

My userbase is stellar in relentlessly clicking every button you provide them :P

Jul 23 2024, 09:34 · Bug Reports
aklapper added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

Thanks. What happens in older Apache2 versions?

Jul 23 2024, 09:25
valerio.bozzolan updated the task description for T15890: Workboard: better clarify if it's Archived.
Jul 23 2024, 08:53 · UX, Projects
valerio.bozzolan added a comment to T15882: When archiving a project, reset its default menu item to Profile.

OK. If you are partially mentioning nonsenses in we.phorge.it itself, you are indeed right.

Jul 23 2024, 08:50 · Discussion Needed, Feature Requests, Projects
valerio.bozzolan changed the visibility for F2325001: Workboard of an Archived Project - Phorge June 2024.png.
Jul 23 2024, 08:43
valerio.bozzolan updated the name of F2325001: Workboard of an Archived Project - Phorge June 2024.png from "image.png" to "Workboard of an Archived Project - Phorge June 2024.png".
Jul 23 2024, 08:43
valerio.bozzolan created T15890: Workboard: better clarify if it's Archived.
Jul 23 2024, 08:43 · UX, Projects
valerio.bozzolan set the color for Macro (deprecated) to Red.
Jul 23 2024, 08:36
valerio.bozzolan renamed Macro (deprecated) from Macro to Macro (deprecated).
Jul 23 2024, 08:35
valerio.bozzolan triaged T15378: PhabricatorApplicationTransactionStructureException trying to mute File notifications: "Attempting to apply a transaction which has not been constructed correctly" as Normal priority.

(Wow. I've never clicked on that button in my life, also when working)

Jul 23 2024, 08:27 · Bug Reports
valerio.bozzolan added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

By the way I cannot reproduce in Apache 2.4.61 🤔 Debian package 2.4.61-1~deb12u1

Jul 23 2024, 08:25
valerio.bozzolan added a comment to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.

Thanks. What happens in older Apache2 versions?

Jul 23 2024, 08:23
valerio.bozzolan accepted D25730: Avoid PhabricatorApplicationTransactionStructureException on editors not supporting Mute Notifications.

Thanks! Looking at PhabricatorSubscriptionsMuteController that works with PhabricatorTransactions::TYPE_EDGE, this seems good to me.

Jul 23 2024, 08:13
valerio.bozzolan requested changes to D25740: Disallow awarding a badge without selecting recipient.

Setting as "new validations probably need to be managed". Thanks again

Jul 23 2024, 07:57
valerio.bozzolan triaged T15827: Possible to award a badge without selecting a recipient as Normal priority.

Thanks :) Interesting weird transaction.

Jul 23 2024, 07:36 · Bug Reports
valerio.bozzolan added inline comments to D25740: Disallow awarding a badge without selecting recipient.
Jul 23 2024, 07:35

Jul 22 2024

aklapper requested review of D25740: Disallow awarding a badge without selecting recipient.
Jul 22 2024, 22:09
aklapper added a revision to T15827: Possible to award a badge without selecting a recipient: D25740: Disallow awarding a badge without selecting recipient.
Jul 22 2024, 22:09 · Bug Reports
aklapper added a comment to T15827: Possible to award a badge without selecting a recipient.

This happens because if ($continue_on_missing && $error->getIsMissingFieldError()) in https://we.phorge.it/source/phorge/browse/master/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php$1248 is true.

Jul 22 2024, 22:06 · Bug Reports
aklapper requested review of D25739: Configuration Guide: Set UnsafeAllow3F for Apache RewriteRule.
Jul 22 2024, 21:11
aklapper added a revision to T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F: D25739: Configuration Guide: Set UnsafeAllow3F for Apache RewriteRule.
Jul 22 2024, 21:11
aklapper created T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.
Jul 22 2024, 21:07
aklapper added a comment to T15719: Phorge mail may not meet Google's email sender guidelines.

Five months later it seems that we survived. Anything left to do?

Jul 22 2024, 20:30 · Maniphest, Mail
aklapper closed D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Jul 22 2024, 15:28
aklapper committed rPa039c4952f6b: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Remove call to undefined method DoorkeeperDAO::getObjectKey()
Jul 22 2024, 15:28
aklapper updated the test plan for D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:26
aklapper requested review of D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:25
aklapper added a revision to T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given": D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Jul 22 2024, 15:25
aklapper updated the task description for T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given".
Jul 22 2024, 15:24
aklapper created T15888: RuntimeException using "Skip past this commit" to access a commit still importing: "reset() expects parameter 1 to be array, null given".
Jul 22 2024, 15:16
aklapper added a comment to T15882: When archiving a project, reset its default menu item to Profile.

We might come from different user journeys.
Your users might be aware what the project means, and that the project (and its workboard) is archived, and they do have an initial reason to look at this archived workboard (e.g. default view is not "open tasks" but "all tasks")?
My users clicked an external link to some project tag in something called Phorge, and that project has been archived in the meantime, and that project is set to show the workboard by default, and that is now just empty columns (as the default view of workboards is "open tasks"), and that is confusing and unhelpful.

Jul 22 2024, 14:17 · Discussion Needed, Feature Requests, Projects
aklapper requested review of D25737: Log Herald rules with invalid actions via phlog().
Jul 22 2024, 11:39
aklapper added a revision to T15887: Herald rule referring to a non-existing action silently fails: D25737: Log Herald rules with invalid actions via phlog().
Jul 22 2024, 11:39 · Herald
aklapper created T15887: Herald rule referring to a non-existing action silently fails.
Jul 22 2024, 11:36 · Herald
aklapper updated the diff for D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().

Skip assigning variable; direct return

Jul 22 2024, 11:18

Jul 21 2024

valerio.bozzolan accepted D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().

Just that oneline

Jul 21 2024, 22:12
valerio.bozzolan accepted D25736: Log Herald rules having disabled Herald rules as condition via phlog().

sgtm

Jul 21 2024, 22:11
aklapper added a comment to D25694: Set "preconnect" HTTP header when "security.alternate-file-domain" is set.

Would anyone be willing to give this another review? :)

Jul 21 2024, 20:19
aklapper added inline comments to D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 18:15
aklapper updated the diff for D25736: Log Herald rules having disabled Herald rules as condition via phlog().

Use $caught, not $ex.

Jul 21 2024, 18:11
aklapper updated the diff for D25735: Log Herald rules with invalid keys via phlog().
  • Use $caught, not $ex.
  • Include Herald rule monogram in log message for easier finding.
Jul 21 2024, 18:09
valerio.bozzolan added inline comments to D25735: Log Herald rules with invalid keys via phlog().
Jul 21 2024, 18:05
aklapper added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Yep thanks

Jul 21 2024, 17:50
valerio.bozzolan added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Jul 21 2024, 17:36
aklapper added a comment to D25736: Log Herald rules having disabled Herald rules as condition via phlog().

(Hmm should I replace $ex->getMessage() with $caught->getMessage() or not?)

Jul 21 2024, 17:29
aklapper updated the test plan for D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:27
aklapper added a comment to T15866: Aphront400Response when editing a task.

Correct, the end user will not realize without opening the network tab of their web browser's developer tools.
However, as a downstream admin, I look at statistics/dashboards of HTTP 4xx and HTTP 5xx errors. When the numbers are not very low I'd usually assume something goes wrong and should be investigated. But that is not the case when Phorge throws a "silent" HTTP 400 for no obvious reasons.

Jul 21 2024, 17:26
aklapper requested review of D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:21
aklapper added a revision to T15869: Herald rule referring to a disabled rule silently fails: D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Jul 21 2024, 17:21 · Herald
aklapper added a comment to T15869: Herald rule referring to a disabled rule silently fails.

Ahh but Transcripts do render an exception when it fails at least. I get a HeraldInvalidConditionException printing Invalid Condition: Condition references a rule which does not exist!, triggered in HeraldAdapter::doesConditionMatch() (only if you reach that condition in the evaluation of course, because https://we.phorge.it/source/phorge/browse/master/src/applications/herald/engine/HeraldEngine.php$437-445 ).
That's called in HeraldEngine in the line $is_match = $adapter->doesConditionMatch (note that class also has a method with the very same name).

Jul 21 2024, 17:17 · Herald
valerio.bozzolan added a comment to T15866: Aphront400Response when editing a task.

So this is "just" something visible from server logs or browser console, right? It is not an error ever visible to user interface.

Jul 21 2024, 09:41
aklapper closed D25721: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Jul 21 2024, 09:36
aklapper committed rP0873b36569bf: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Remove call to non-existing AphrontTypeaheadTemplateView::renderToken()
Jul 21 2024, 09:36
valerio.bozzolan renamed T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers from Diffusion repository commits: avoid to be a black hoile for webcrawlers to Diffusion repository commits: avoid to be a black hole for webcrawlers.
Jul 21 2024, 08:39 · Discussion Needed
valerio.bozzolan renamed T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers from Disallow webcrawlers to index Diffusion repository commits to Diffusion repository commits: avoid to be a black hoile for webcrawlers.
Jul 21 2024, 08:39 · Discussion Needed
valerio.bozzolan added a comment to T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers.

(Trying to make this task a bit more about the root problem, and less about the proposed solution)

Jul 21 2024, 08:39 · Discussion Needed
valerio.bozzolan added a subtask for T15886: Archived Projects: make them "more Archived" : T15882: When archiving a project, reset its default menu item to Profile.
Jul 21 2024, 08:33 · Projects
valerio.bozzolan added a parent task for T15882: When archiving a project, reset its default menu item to Profile: T15886: Archived Projects: make them "more Archived" .
Jul 21 2024, 08:33 · Discussion Needed, Feature Requests, Projects