Page MenuHomePhorge

aklapper (Andre Klapper)
Bot

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Monday

  • Clear sailing ahead.

User Details

User Since
Feb 28 2023, 20:44 (73 w, 3 d)
Availability
Available

Recent Activity

Yesterday

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

Fri, Jul 26, 19:31
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
Fri, Jul 26, 17:56
aklapper updated the task description for T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Fri, Jul 26, 14:50 · PHP 8 support
aklapper requested review of D25748: Fix PHP 8.1 "strlen(null)" exception on LDAP login without password.
Fri, Jul 26, 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.
Fri, Jul 26, 14:46 · PHP 8 support
aklapper created T15893: PHP 8.1 "strlen(null)" exception for LDAP login without password.
Fri, Jul 26, 14:43 · PHP 8 support
aklapper closed D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Fri, Jul 26, 11:48
aklapper committed rP903015312a0b: Remove unused parameter from PhabricatorDaemonController::buildSideNavView()….
Remove unused parameter from PhabricatorDaemonController::buildSideNavView()…
Fri, Jul 26, 11:48
aklapper closed D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Fri, Jul 26, 10:06
aklapper committed rPc5c2b8ce5a67: Remove unused parameter from PhabricatorMailEmailEngine….
Remove unused parameter from PhabricatorMailEmailEngine…
Fri, Jul 26, 10:06
aklapper closed D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Fri, Jul 26, 08:24
aklapper committed rP4e31cadb54d2: Remove unused parameter from PhabricatorConfigConsoleController….
Remove unused parameter from PhabricatorConfigConsoleController…
Fri, Jul 26, 08:24

Thu, Jul 25

aklapper requested review of D25747: Remove unused parameter from PhabricatorMailEmailEngine::newEmailThreadingHeaders() call.
Thu, Jul 25, 18:34
aklapper retitled D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call from Remove parameter from PhabricatorDaemonController::buildSideNavView() call
Thu, Jul 25, 13:56
aklapper requested review of D25746: Remove unused parameter from PhabricatorDaemonController::buildSideNavView() call.
Thu, Jul 25, 13:54
aklapper requested review of D25745: Remove unused parameter from PhabricatorConfigConsoleController::newLibraryVersionTable() call.
Thu, Jul 25, 13:50
aklapper requested review of D25744: Fix undefined variable in PhabricatorBadgesEditRecipientsController.
Thu, Jul 25, 13:43
aklapper requested review of D25743: Fix stripping headers from proxy requests to other cluster nodes.
Thu, Jul 25, 13:31
aklapper closed D25741: Fix undefined variable in HeraldAction.
Thu, Jul 25, 12:41
aklapper committed rP0b93685cc999: Fix undefined variable in HeraldAction.
Fix undefined variable in HeraldAction
Thu, Jul 25, 12:41

Wed, Jul 24

aklapper requested review of D25742: Fix non-existing log method in HarbormasterManagementRestartWorkflow.
Wed, Jul 24, 16:36
aklapper requested review of D25741: Fix undefined variable in HeraldAction.
Wed, Jul 24, 15:48

Tue, Jul 23

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

Tue, Jul 23, 20:25
aklapper created T15891: Ineffective instanceof check in PhabricatorMySQLSetupCheck:shouldUseMySQLSearchEngine().
Tue, Jul 23, 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

Tue, Jul 23, 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?

Tue, Jul 23, 09:25

Mon, Jul 22

aklapper requested review of D25740: Disallow awarding a badge without selecting recipient.
Mon, Jul 22, 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.
Mon, Jul 22, 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.

Mon, Jul 22, 22:06 · Bug Reports
aklapper requested review of D25739: Configuration Guide: Set UnsafeAllow3F for Apache RewriteRule.
Mon, Jul 22, 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.
Mon, Jul 22, 21:11
aklapper created T15889: Apache 2.4.61 throws a 403 Forbidden for links containing %3F.
Mon, Jul 22, 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?

Mon, Jul 22, 20:30 · Maniphest, Mail
aklapper closed D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Mon, Jul 22, 15:28
aklapper committed rPa039c4952f6b: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Remove call to undefined method DoorkeeperDAO::getObjectKey()
Mon, Jul 22, 15:28
aklapper updated the test plan for D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Mon, Jul 22, 15:26
aklapper requested review of D25738: Avoid RuntimeException on "Skip past this commit" when commit still importing.
Mon, Jul 22, 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.
Mon, Jul 22, 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".
Mon, Jul 22, 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".
Mon, Jul 22, 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.

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

Skip assigning variable; direct return

Mon, Jul 22, 11:18

Sun, Jul 21

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? :)

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

Use $caught, not $ex.

Sun, Jul 21, 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.
Sun, Jul 21, 18:09
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

Sun, Jul 21, 17:50
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?)

Sun, Jul 21, 17:29
aklapper updated the test plan for D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Sun, Jul 21, 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.

Sun, Jul 21, 17:26
aklapper requested review of D25736: Log Herald rules having disabled Herald rules as condition via phlog().
Sun, Jul 21, 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().
Sun, Jul 21, 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).

Sun, Jul 21, 17:17 · Herald
aklapper closed D25721: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Sun, Jul 21, 09:36
aklapper committed rP0873b36569bf: Remove call to non-existing AphrontTypeaheadTemplateView::renderToken().
Remove call to non-existing AphrontTypeaheadTemplateView::renderToken()
Sun, Jul 21, 09:36

Sat, Jul 20

aklapper closed T15878: Update embedded phpqrcode from version 1.1.4 to 1.9.9 as Resolved by committing rP2aecae4ede9d: Update phpqrcode from version 1.1.4 to 1.9.9.
Sat, Jul 20, 10:11
aklapper closed D25725: Update phpqrcode from version 1.1.4 to 1.9.9.
Sat, Jul 20, 10:11
aklapper committed rP2aecae4ede9d: Update phpqrcode from version 1.1.4 to 1.9.9.
Update phpqrcode from version 1.1.4 to 1.9.9
Sat, Jul 20, 10:11
aklapper added inline comments to D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Sat, Jul 20, 09:59
aklapper closed D25717: Removed unused renderStatus() from PhabricatorProjectSubprojectsController.
Sat, Jul 20, 09:55
aklapper committed rPc3aa581f8440: Removed unused renderStatus() from PhabricatorProjectSubprojectsController.
Removed unused renderStatus() from PhabricatorProjectSubprojectsController
Sat, Jul 20, 09:55
aklapper added a comment to T15882: When archiving a project, reset its default menu item to Profile.

For example, some people then may ask "why my default view was changed?" and they will start manually "rollbacking" this to their desired view (e.g. showing closed tasks, from the Workboard, with a filter "Show all tasks").

Sat, Jul 20, 09:27 · Discussion Needed, Feature Requests, Projects

Fri, Jul 19

aklapper added a comment to D25735: Log Herald rules with invalid keys via phlog().

I personally don't see value in sharing a stacktrace in this case. YMMV :)

Fri, Jul 19, 16:36
valerio.bozzolan awarded D25735: Log Herald rules with invalid keys via phlog() a Yellow Medal token.
Fri, Jul 19, 16:19
aklapper added a comment to T15869: Herald rule referring to a disabled rule silently fails.

Uhmm, transcripts at http://phorge.localhost/herald/transcript/33065/ never ever render a Herald rule condition (disabled or not) within another rule, it seems

Fri, Jul 19, 16:05 · Herald
aklapper added a comment to T15110: File reference not removed when file is deleted.

I'd be worried about DB performance running such a query as our DB has dozens of millions of files... (This is basically SELECT COUNT(*) FROM file_attachment fa WHERE fa.filePHID NOT IN (SELECT f.phid FROM file); in my understanding?)

Fri, Jul 19, 15:30 · Files, Bug Reports
aklapper added a comment to D25735: Log Herald rules with invalid keys via phlog().

Hmm I guess now my patch title is too narrow as it logs any Herald exceptions? :D

Fri, Jul 19, 14:58
aklapper updated the diff for D25735: Log Herald rules with invalid keys via phlog().

Per Valerio's previous comments

Fri, Jul 19, 14:54
valerio.bozzolan awarded T15866: Aphront400Response when editing a task a Yellow Medal token.
Fri, Jul 19, 14:15
aklapper requested review of D25735: Log Herald rules with invalid keys via phlog().
Fri, Jul 19, 13:29
aklapper added a revision to T15885: Fail more verbosely in Herald rules for invalid keys: D25735: Log Herald rules with invalid keys via phlog().
Fri, Jul 19, 13:29
aklapper created T15885: Fail more verbosely in Herald rules for invalid keys.
Fri, Jul 19, 13:23
aklapper updated the summary of D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Fri, Jul 19, 11:44
aklapper requested review of D25734: Remove call to undefined method DoorkeeperDAO::getObjectKey().
Fri, Jul 19, 11:43

Wed, Jul 17

aklapper edited the content of Next Up.
Wed, Jul 17, 13:48
aklapper edited the content of Next Up.
Wed, Jul 17, 13:48
aklapper closed T15843: Allow collapse and expand of workboard columns in mobile view as Resolved by committing rPfec00256be1f: Allow collapsing/expanding workboard column content by clicking its header.
Wed, Jul 17, 13:44 · Workboard
aklapper closed D25672: Allow collapsing/expanding workboard column content by clicking its header.
Wed, Jul 17, 13:44
aklapper committed rPfec00256be1f: Allow collapsing/expanding workboard column content by clicking its header.
Allow collapsing/expanding workboard column content by clicking its header
Wed, Jul 17, 13:44
aklapper added a comment to T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.

Still happens after backing out rP2295bcda14e71948516752f8fbada6601b9f0bde thus not a recent regression.

Wed, Jul 17, 07:58
aklapper updated the task description for T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.
Wed, Jul 17, 06:52

Tue, Jul 16

aklapper created T15884: "Uncaught TypeError: spec is undefined" and no hovercard over task link in Aphlict notification.
Tue, Jul 16, 19:10

Mon, Jul 15

aklapper added a comment to D25733: Do not throw Aphront400Response when editing a task.

I guess I just do not enjoy a good number of HTTP 400 errors in our error logs when literally nothing went wrong at all.

Mon, Jul 15, 16:17
aklapper requested review of D25733: Do not throw Aphront400Response when editing a task.
Mon, Jul 15, 16:13
aklapper added a revision to T15866: Aphront400Response when editing a task: D25733: Do not throw Aphront400Response when editing a task.
Mon, Jul 15, 16:13
aklapper added a comment to T15866: Aphront400Response when editing a task.

The other option would be including "__form__":"1" in that call to avoid the 400.

Mon, Jul 15, 16:12
aklapper updated the summary of D25672: Allow collapsing/expanding workboard column content by clicking its header.
Mon, Jul 15, 15:41
aklapper closed D25718: Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine.
Mon, Jul 15, 06:28
aklapper committed rP03092ca42202: Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine.
Removed unused loadGitLocalRefs() from PhabricatorRepositoryPullEngine
Mon, Jul 15, 06:28

Sun, Jul 14

aklapper closed T15865: [Regression] Incorrect mail subject header [Updated] instead of [Created] as Resolved by committing rP5a454cef8a98: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Sun, Jul 14, 22:45
aklapper closed D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Sun, Jul 14, 22:45
aklapper committed rP5a454cef8a98: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE
Sun, Jul 14, 22:45
aklapper added a comment to D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Sun, Jul 14, 22:44

Sat, Jul 13

aklapper requested review of D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Sat, Jul 13, 15:47
aklapper added a revision to T15865: [Regression] Incorrect mail subject header [Updated] instead of [Created]: D25732: Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE.
Sat, Jul 13, 15:47
aklapper added a comment to T15865: [Regression] Incorrect mail subject header [Updated] instead of [Created].

Applying the debug patch in P45, output when creating a new task shows that Updated (defined in https://we.phorge.it/source/phorge/browse/master/src/applications/transactions/storage/PhabricatorApplicationTransaction.php;877ac8a873f979f418064eb2f36f1148c9838694$1611-1612) wins over Created (defined in https://we.phorge.it/source/phorge/browse/master/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php;877ac8a873f979f418064eb2f36f1148c9838694$24) as ActionName:

[0]
PHLOG: 'PATE: TransactionType: core:create' at [/var/www/html/phorge/phorge/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1625]
PHLOG: 'PAT: TA Type: core:create' at [/var/www/html/phorge/phorge/src/applications/transactions/storage/PhabricatorApplicationTransaction.php:1601]
PHLOG: 'PATE: ActionName:      Updated' at [/var/www/html/phorge/phorge/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1626]
PHLOG: 'PATE: ActionStrength:  140' at [/var/www/html/phorge/phorge/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1627]
Sat, Jul 13, 15:41
aklapper created P45 T15865 debug.
Sat, Jul 13, 15:41