Page MenuHomePhorge
Feed All Stories

Today

20after4 added a comment to T15948: Allow public API access when equivalent public web access exists.
Fri, Apr 4, 10:01 · Policy, Conduit, Phorge
valerio.bozzolan edited the content of Change Log.
Fri, Apr 4, 07:17

Yesterday

keithzg added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

Yeah I was also pretty sure Phab used mysqli? I have had to have it on all my installations, and the Phorge documentation still cites it. https://we.phorge.it/book/contrib/article/database/

Thu, Apr 3, 17:36
mainframe98 added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

Phorge neither uses PHP's mysqli extension nor calls PHP's htmlentities() function.

Are you sure about that? Phorge supports either the old mysql extension or mysqli - and mysql was deprecated in PHP 5.5, and removed in PHP 7.0. Notably, Phorge checks for the existence of mysqli in PhabricatorDatabaseRef, PhabricatorExtensionSetupCheck and PhabricatorPHPConfigSetupCheck.

Thu, Apr 3, 17:07
Cigaryno updated the task description for T15948: Allow public API access when equivalent public web access exists.
Thu, Apr 3, 11:16 · Policy, Conduit, Phorge
valerio.bozzolan resigned from rP67b7181f5226: Facts: Always render YYYY-MM-DD dates with eight digits in chart tooltips.
Thu, Apr 3, 07:43

Wed, Apr 2

aklapper updated subscribers of T15724: PHP 8.3: Usage of ldap_connect with two arguments is deprecated.

Patch based on my understanding of taavi's comments in T15963 (as I fail to set up an LDAP server locally):

diff --git a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
index 14047c1761..e25659a4aa 100644
--- a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
+++ b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
@@ -305,7 +305,16 @@ final class PhutilLDAPAuthAdapter extends PhutilAuthAdapter {
           'port' => $this->port,
         ));
Wed, Apr 2, 21:43 · Deprecation Notice, PHP 8 support
aklapper added a comment to rP67b7181f5226: Facts: Always render YYYY-MM-DD dates with eight digits in chart tooltips.

@valerio.bozzolan Could you remove the concern so this isn't listed on https://we.phorge.it/diffusion/commit/ for me? Thanks :)

Wed, Apr 2, 20:19
aklapper edited the content of Welcome to the Phorge Wiki.
Wed, Apr 2, 20:17 · Phorge
Cigaryno added a comment to T15948: Allow public API access when equivalent public web access exists.

There must be a function that allows Conduit methods to be used by logged-out users. It's just that there are hardly any methods using that function.

Wed, Apr 2, 18:16 · Policy, Conduit, Phorge
Cigaryno updated the task description for T15948: Allow public API access when equivalent public web access exists.
Wed, Apr 2, 18:11 · Policy, Conduit, Phorge
Cigaryno added a comment to T15948: Allow public API access when equivalent public web access exists.

There must be a function that allows Conduit methods to be used by logged-out users. It's just that there are hardly any methods using that function.

Wed, Apr 2, 18:11 · Policy, Conduit, Phorge
aklapper closed T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php as Resolved by committing rP17033a1c70d8: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string()….
Wed, Apr 2, 13:09 · Bug Reports, Affects-Wikimedia
aklapper closed D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Wed, Apr 2, 13:09
aklapper committed rP17033a1c70d8: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string()….
Fix exception handling a numeric git branch ("Call to phutil_nonempty_string()…
Wed, Apr 2, 13:09
aklapper updated the diff for D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).

add PHPDoc

Wed, Apr 2, 13:07
valerio.bozzolan accepted D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).

Check if the comments are interesting - thanks for this Phorgi patchi that seems lovely

Wed, Apr 2, 12:03
aklapper requested review of D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Wed, Apr 2, 11:55
aklapper added a revision to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php: D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Wed, Apr 2, 11:55 · Bug Reports, Affects-Wikimedia
valerio.bozzolan renamed T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php from Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php to Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.
Wed, Apr 2, 11:23 · Bug Reports, Affects-Wikimedia
valerio.bozzolan added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

I'm still a bit shocked by how PHP is so weird. So:

Wed, Apr 2, 09:55 · Bug Reports, Affects-Wikimedia
valerio.bozzolan added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

Wow. 10 years of PHP, first time that I notice this

Wed, Apr 2, 09:45 · Bug Reports, Affects-Wikimedia
aklapper added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax :

Strings containing valid decimal ints, unless the number is preceded by a + sign, will be cast to the int type.

Wed, Apr 2, 00:00 · Bug Reports, Affects-Wikimedia

Tue, Apr 1

aklapper closed D25943: PHPDoc: Replace non-existing return type phid with string.
Tue, Apr 1, 23:15
aklapper committed rARC93930454c58a: PHPDoc: Replace non-existing return type phid with string.
PHPDoc: Replace non-existing return type phid with string
Tue, Apr 1, 23:15
aklapper closed D25944: PHPDoc: Replace non-existing return type phid with string.
Tue, Apr 1, 23:15
aklapper committed rPdef09cf442de: PHPDoc: Replace non-existing return type phid with string.
PHPDoc: Replace non-existing return type phid with string
Tue, Apr 1, 23:15
valerio.bozzolan accepted D25943: PHPDoc: Replace non-existing return type phid with string.

yuuuuuuup

Tue, Apr 1, 18:23
valerio.bozzolan accepted D25944: PHPDoc: Replace non-existing return type phid with string.

yuuuup

Tue, Apr 1, 18:23
aklapper added a project to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php: Bug Reports.

The culprit is $map[$branch] = $branch_head; in https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/data/DiffusionGitBranch.php$105.
Before $branch was a string, afterwards it is an integer.

Tue, Apr 1, 17:47 · Bug Reports, Affects-Wikimedia
aklapper updated the summary of D25902: Remove unused code in ManiphestReportController::renderBurn().
Tue, Apr 1, 09:52
valerio.bozzolan accepted D25942: Herald Transcripts: Use μs instead of us for microseconds.

Patch approved in 123123121231323μ asd

Tue, Apr 1, 09:33
aklapper requested review of D25944: PHPDoc: Replace non-existing return type phid with string.
Tue, Apr 1, 09:02
aklapper requested review of D25943: PHPDoc: Replace non-existing return type phid with string.
Tue, Apr 1, 09:01

Mon, Mar 31

aklapper requested review of D25942: Herald Transcripts: Use μs instead of us for microseconds.
Mon, Mar 31, 21:17
aklapper requested review of D25941: PhabricatorCustomField: Fix a typo in PHPDoc.
Mon, Mar 31, 21:01
aklapper closed D25940: PHPDoc: Replace non-existing param type phid with string.
Mon, Mar 31, 20:52
aklapper committed rPb302851369f0: PHPDoc: Replace non-existing param type phid with string.
PHPDoc: Replace non-existing param type phid with string
Mon, Mar 31, 20:52
valerio.bozzolan accepted D25940: PHPDoc: Replace non-existing param type phid with string.

Yup and thanks that somebody already put "PHID" is the inline description.

Mon, Mar 31, 20:44
aklapper requested review of D25940: PHPDoc: Replace non-existing param type phid with string.
Mon, Mar 31, 20:23
aklapper closed D25938: PHPDoc: Replace non-existing param type const with string.
Mon, Mar 31, 20:01
aklapper committed rPabb0d6815a98: PHPDoc: Replace non-existing param type const with string.
PHPDoc: Replace non-existing param type const with string
Mon, Mar 31, 20:01
aklapper closed D25939: PHPDoc: Replace non-existing param type const with string.
Mon, Mar 31, 20:00
aklapper committed rARCb6210fae9136: PHPDoc: Replace non-existing param type const with string.
PHPDoc: Replace non-existing param type const with string
Mon, Mar 31, 20:00
valerio.bozzolan accepted D25938: PHPDoc: Replace non-existing param type const with string.

yesyes

Mon, Mar 31, 19:36
valerio.bozzolan accepted D25939: PHPDoc: Replace non-existing param type const with string.

yesyes

Mon, Mar 31, 19:36
aklapper requested review of D25939: PHPDoc: Replace non-existing param type const with string.
Mon, Mar 31, 19:31
aklapper requested review of D25938: PHPDoc: Replace non-existing param type const with string.
Mon, Mar 31, 19:29
Cigaryno closed D25936: Mark Phorge.it Home as non-launchable.
Mon, Mar 31, 14:21 · User-Cigaryno, phorge.it install
Cigaryno committed R10:4fac8b0aa67c: Mark Phorge.it Home as non-launchable.
Mark Phorge.it Home as non-launchable
Mon, Mar 31, 14:21
Cigaryno closed T16018: Update TOTP suggestions to open-source applications as Resolved by committing rPf6639cc09c3d: Update TOTP suggestions to open-source applications.
Mon, Mar 31, 13:54 · User-Cigaryno, Auth
Cigaryno closed D25934: Update TOTP suggestions to open-source applications.
Mon, Mar 31, 13:54 · User-Cigaryno, Auth
Cigaryno committed rPf6639cc09c3d: Update TOTP suggestions to open-source applications.
Update TOTP suggestions to open-source applications
Mon, Mar 31, 13:54
aklapper accepted D25934: Update TOTP suggestions to open-source applications.

Looks good to me, thanks!

Mon, Mar 31, 13:01 · User-Cigaryno, Auth
avivey accepted D25936: Mark Phorge.it Home as non-launchable.

Looks good, yeah.

Mon, Mar 31, 06:51 · User-Cigaryno, phorge.it install

Sun, Mar 30

aklapper added a comment to D25935: Require MFA to uninstall apps if enabled.

Why would a cancel URI be needed?

Sun, Mar 30, 22:04 · Security, User-Cigaryno
Cigaryno added a reviewer for D25936: Mark Phorge.it Home as non-launchable: avivey.

@avivey does this look good to you?

Sun, Mar 30, 21:53 · User-Cigaryno, phorge.it install
aklapper requested review of D25937: PHPDoc: Make some parameter types match type in signatures.
Sun, Mar 30, 21:06
aklapper added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

But so far this is nothing meant to be hidden from users who can't edit the repo.

Sun, Mar 30, 20:52 · User-Cigaryno, Diffusion
Cigaryno added a comment to D25935: Require MFA to uninstall apps if enabled.

After these steps I get Unhandled Exception ("Exception"): This transaction group requires MFA to apply, but the Editor was not configured with a Cancel URI. This workflow can not perform an MFA check.

Why would a cancel URI be needed? Do you know a Cancel URI for an app with something that prompts for MFA (ie. exposing Passphrases, empowering users, signing comments with MFA, managing your VCS password and SSH keys)

Sun, Mar 30, 20:51 · Security, User-Cigaryno
aklapper added a comment to D25935: Require MFA to uninstall apps if enabled.

Which "an application" exactly?

Any application were canUninstall is not set to false (thus not a required application).

That's what I tested (as the Files application can be uninstalled). Which exact application(s) did you test?
I'm surprised that you did not run into the same problem as I did described in my last comment...maybe it's related to not being an admin?

Sun, Mar 30, 20:46 · Security, User-Cigaryno
Cigaryno added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

Socially I remain unconvinced about use cases. Implications are for example exposing hidden (or internal?) URIs under URIs or "Working Copy Status" stuff under Basics to the public. I just so far do not think it's a good idea.

Sun, Mar 30, 20:44 · User-Cigaryno, Diffusion
aklapper added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

Tested this locally; technically it looks correct to me.

Sun, Mar 30, 20:42 · User-Cigaryno, Diffusion
aklapper updated the test plan for D25926: Make Diffusion repository management accessible to logged-out users.
Sun, Mar 30, 20:41 · User-Cigaryno, Diffusion
Cigaryno added a comment to D25935: Require MFA to uninstall apps if enabled.

Which "an application" exactly?

Any application were canUninstall is not set to false (thus not a required application).

As which type of user?

A user with the Can Configure Application capability (by default admins).

Sun, Mar 30, 20:31 · Security, User-Cigaryno
Cigaryno updated the diff for D25934: Update TOTP suggestions to open-source applications.

Fix typos reported by @aklapper.

Sun, Mar 30, 20:27 · User-Cigaryno, Auth
aklapper renamed T15036: Phorge upstream mail should not use @secure.phorge.dev addresses from Phorge upstream mail should not use @upstream.phorge.dev addresses to Phorge upstream mail should not use @secure.phorge.dev addresses.
Sun, Mar 30, 20:23 · phorge.it install
Cigaryno added a comment to D25936: Mark Phorge.it Home as non-launchable.

@Cigaryno: Thanks! Could you elaborate why the change in .arcconfig is needed?

Sun, Mar 30, 20:15 · User-Cigaryno, phorge.it install
aklapper requested changes to D25935: Require MFA to uninstall apps if enabled.

Clear Test Plans with URIs are welcome - the less others need to think "how/where to do that" the easier gets testing.

Sun, Mar 30, 20:13 · Security, User-Cigaryno
aklapper updated the test plan for D25936: Mark Phorge.it Home as non-launchable.
Sun, Mar 30, 19:54 · User-Cigaryno, phorge.it install
aklapper added a comment to D25936: Mark Phorge.it Home as non-launchable.

@Cigaryno: Thanks! Could you elaborate why the change in .arcconfig is needed?

Sun, Mar 30, 19:53 · User-Cigaryno, phorge.it install
avivey added a comment to T15036: Phorge upstream mail should not use @secure.phorge.dev addresses.

So, this turns out to be a lot harder than I thought.

Sun, Mar 30, 19:15 · phorge.it install
aklapper requested changes to D25934: Update TOTP suggestions to open-source applications.

Should be fine after these two changes :)

Sun, Mar 30, 19:11 · User-Cigaryno, Auth
aklapper added inline comments to D25934: Update TOTP suggestions to open-source applications.
Sun, Mar 30, 19:11 · User-Cigaryno, Auth
aklapper added a comment to Q166: Support for request header and body in "Make HTTP Request" step in Harbormaster.

There is a downstream patch "Add HTTP Body option in Harbormaster HTTP Build step" in https://github.com/mozilla-conduit/phabricator/commit/9bb9a12079b381ce14af97a8b2c511ae71be389c which might be related and could be lifted?

Sun, Mar 30, 15:33 · Almanac/Drydock/Harbormaster
Cigaryno renamed T15059: we.phorge.it doesn't email @outlook.com addresses from Phabricator doesn't email @outlook.com addresses to we.phorge.it doesn't email @outlook.com addresses.
Sun, Mar 30, 12:56 · phorge.it install
Cigaryno added a comment to T15103: Status Checker.

I think it's relevant to have a status site (likely at status.phorge.it). Uptimerobot sounds like a good option and is used by translatewiki.net.
One thing that's optional to have (likely not possible with Uptimerobot) is a Daemon status checker, as @avivey pointed out when they forgot to start the daemons at some point. For this, a custom status checker that calls a daemon that's not for making edits or changes can be used.

Sun, Mar 30, 10:09 · Phorge.it Systems
Cigaryno added a hashtag to phorge.it install: #we.phorge.it.
Sun, Mar 30, 10:05
Cigaryno added a comment to D25936: Mark Phorge.it Home as non-launchable.

I don't know why, but O1 has to be manually added as a reviewer as it does not own R10.

Sun, Mar 30, 10:04 · User-Cigaryno, phorge.it install
Cigaryno added a reviewer for D25936: Mark Phorge.it Home as non-launchable: O1: Blessed Committers.
Sun, Mar 30, 10:03 · User-Cigaryno, phorge.it install
Cigaryno requested review of D25936: Mark Phorge.it Home as non-launchable.
Sun, Mar 30, 10:02 · User-Cigaryno, phorge.it install
AndrewTavis added a comment to T16018: Update TOTP suggestions to open-source applications.

Thank you both for the conversation here and further thanks @Cigaryno for the patch! :)

Sun, Mar 30, 09:57 · User-Cigaryno, Auth
Cigaryno updated the test plan for D25027: Allow an infinite number of arcpatch_DXXXX_X branches to be created.
Sun, Mar 30, 09:18 · Differential, Arcanist

Sat, Mar 29

Cigaryno claimed T15490: Uninstalling/Installing an application should eventually involve MFA.

I don't know if what I done on D25935 is correct, but as usual, Request Changes if I did it wrong.
I relied on the code on PhabricatorUserEmpowerTransaction to try to make PhabricatorApplicationUninstallTransaction require MFA if enabled.

Sat, Mar 29, 16:52 · User-valerio.bozzolan, Security
Cigaryno updated the diff for D25935: Require MFA to uninstall apps if enabled.

Make lint happy

Sat, Mar 29, 16:43 · Security, User-Cigaryno
Cigaryno requested review of D25935: Require MFA to uninstall apps if enabled.
Sat, Mar 29, 16:40 · Security, User-Cigaryno
Cigaryno added a revision to T15490: Uninstalling/Installing an application should eventually involve MFA: D25935: Require MFA to uninstall apps if enabled.
Sat, Mar 29, 16:40 · User-valerio.bozzolan, Security