Page MenuHomePhorge
Feed Advanced Search

Jun 30 2023

speck added a comment to D25319: Make src/infrastructure/javelin/markup.php phabricator_form PHP 8.1 compliant.

Is there another place not specifying the method for a form? I don’t think that attribute should be optional and instead the fix is to explicitly declare GET or POST or PUT for forms.

Jun 30 2023, 17:22
speck accepted D25316: Update a couple of lingering instances of secure.phabricator.com to we.phorge.it.
Jun 30 2023, 00:05

Jun 27 2023

speck added a comment to T15152: MFA: Avoid to having to wait a minute so often, for example right after login.

In discussion over a support ticket one of the potential options that was discussed was having a "An MFA challenge is about to appear, click to continue" prompt in the workflow as a means to prepare users to get their phones/devices ready so they can respond within the 30 seconds. Right now since MFA is opt-in per each user instead of required per auth portal - the current login workflow will immediately prompt you for MFA after successful login, which might surprise users who fumble to get the TOTP code out (it's happened to me).

Jun 27 2023, 00:25 · User-valerio.bozzolan
speck added a comment to T15152: MFA: Avoid to having to wait a minute so often, for example right after login.

The comments in https://secure.phabricator.com/T9770 discuss the "spyglass" attack and how this behavior is meant to be more secure.

Jun 27 2023, 00:21 · User-valerio.bozzolan

Jun 26 2023

speck accepted D25291: Fix UX regression in Dashboard Tabs Panel.

nice

Jun 26 2023, 23:44
speck added a comment to D25303: Implements a more informative hovercard for wiki documents.

Very nice

Jun 26 2023, 23:42
speck added a comment to D25312: Fix notification message when Aphlict is not configured.

Is it legit for this function to return an array instead of a single item? That’s the only structural question I have- everything else looks good and just some nitpicks.

Jun 26 2023, 21:46

Jun 23 2023

speck added a comment to D25303: Implements a more informative hovercard for wiki documents.

Code-wise this looks good, though I’m not overly familiar with CSS or how Phorge uses it. Ready to accept after the empty icon thing is resolved.

Jun 23 2023, 19:51
speck added a comment to D25303: Implements a more informative hovercard for wiki documents.

This looks great! Thank you for working on it.

Jun 23 2023, 19:47

Jun 22 2023

speck added a comment to T15491: Add config option for default branch name.

Just clarifying - this is for specifying the initial default value for the Default Branch field that can currently be edited after creation?

Jun 22 2023, 18:01 · Good Starter Task, Feature Requests, Diffusion

Jun 21 2023

speck added a comment to D25291: Fix UX regression in Dashboard Tabs Panel.

No worries, I haven’t had time to dig in. I wanted to review D25067

Jun 21 2023, 17:08

Jun 20 2023

speck added a comment to D25303: Implements a more informative hovercard for wiki documents.

Thank you for clarifying!

Jun 20 2023, 12:18
speck added inline comments to D25303: Implements a more informative hovercard for wiki documents.
Jun 20 2023, 12:18

Jun 19 2023

speck added a comment to T15152: MFA: Avoid to having to wait a minute so often, for example right after login.

I had discussed this with Evan previously and he gave a great explanation for why the current behavior exists, something he refers to as “spyglass attack”. I’d have to go back and review the explanation. What I recall the outcome being a few options, one of which was prompting the user that they are about to be promoted for MFA before issuing the challenge, to give the user time to prepare.

Jun 19 2023, 23:27 · User-valerio.bozzolan
speck accepted D25249: Fix PHP 8.0 ValueError calling mb_convert_encoding() with an invalid encoding.

Thanks - the behavior I was seeing I think mirrors your own but the error I was getting was more directly related which confused me. It seems using @ does not clear the previous error from its use? Bleh.

Jun 19 2023, 23:00
speck added a comment to T15470: Include user email address in Conduit output when query is run by admin.

I think updating the user script is a good idea if this functionality is needed.

Jun 19 2023, 22:56 · Conduit, Discussion Needed, Feature Requests
speck added a comment to D25303: Implements a more informative hovercard for wiki documents.

I like this idea. A few things I want to note

  1. Could you post a screenie for what the breadcrumb rendering appears as?
  2. Does the name of this new class follow other classes that extend the hierarchy? I’m guessing yes but just want to double-check.
  3. Maniphest tasks will render their primary Space (assuming non-default) as a prefix to the title. I think wiki docs should do similar.
  4. Do wiki docs have a description field?
Jun 19 2023, 22:55
speck added a comment to T15486: Do not expose "Contact Numbers" in user settings when no SMS support is set up in Phorge.

I wonder if there were plans to incorporate contact numbers with the prototype app for handling support (the name escapes me).

Jun 19 2023, 22:45 · Policy

Jun 13 2023

speck accepted D25292: Fix PHP 8.1 "strlen(null)" exception calling Conduit's user.whoami.
Jun 13 2023, 00:38
speck added a comment to D25249: Fix PHP 8.0 ValueError calling mb_convert_encoding() with an invalid encoding.

Something like this, though I'm not sure if this is actually correct - in PHP8 using @ will still throw a ValueError if passed an invalid encoding. But I'm not sure This @ thing is working as expected in php8, or I don't have a valid test case.

$message = null;
try {
  $result = @mb_convert_encoding($string, $to_encoding, $from_encoding);
Jun 13 2023, 00:33
speck requested changes to D25249: Fix PHP 8.0 ValueError calling mb_convert_encoding() with an invalid encoding.

I think this change is removing intentional design. The reason that @ is used instead of try/catch -- the comment on the function is saying if you have a string in e.g. Latin-1 and $to_encoding is set to something different-yet-valid such as Korean (e.g. ISO-2022-KR) -- then the encoding conversion will silently fail, not throwing an exception, but still populating the result with incorrect garbage. The exception only appears to be thrown if either of the to/from encodings are invalid like lol or asd. This is likely a breaking change.

Jun 13 2023, 00:26

Jun 12 2023

speck added a comment to D25285: Fix PHP 8.1 "strlen(null)" exception when Diffusion repository has no tags.

Still accepted~

Jun 12 2023, 17:16
speck accepted D25289: Fix PHP 8.1 "strlen(null)" exception on Diffusion repository History page after setting Callsign.
Jun 12 2023, 15:33
speck accepted D25290: Fix PHP 8.1 "strlen(null)" exception which blocks rendering commit page in Diffusion.
Jun 12 2023, 02:07
speck added a comment to D25289: Fix PHP 8.1 "strlen(null)" exception on Diffusion repository History page after setting Callsign.

Do you think this also requires the strlen() check?

Jun 12 2023, 01:50
speck accepted D25284: Fix PHP 8.1 "strlen(null)" exceptions on History page of Diffusion repo after changing text encoding.

Thank you!

Jun 12 2023, 01:46
speck added inline comments to D25290: Fix PHP 8.1 "strlen(null)" exception which blocks rendering commit page in Diffusion.
Jun 12 2023, 01:45
speck accepted D25286: Fix PHP 8.1 "strlen(null)" exceptions trying to browse Diffusion repository code.

Thank you!

Jun 12 2023, 01:44
speck requested changes to D25284: Fix PHP 8.1 "strlen(null)" exceptions on History page of Diffusion repo after changing text encoding.

Similar here, on transactions it’s unclear if these are always strings, especially the use of the render functions. I think these should be null checked (for both vars, in both cases) and not use phutil.

Jun 12 2023, 01:28
speck accepted D25285: Fix PHP 8.1 "strlen(null)" exception when Diffusion repository has no tags.
Jun 12 2023, 01:26
speck requested changes to D25289: Fix PHP 8.1 "strlen(null)" exception on Diffusion repository History page after setting Callsign.

Similar here it seems the values might not always be strings so should be null-check, and both old and new should be checked

Jun 12 2023, 01:24
speck added inline comments to D25286: Fix PHP 8.1 "strlen(null)" exceptions trying to browse Diffusion repository code.
Jun 12 2023, 01:23
speck accepted D25288: Fix PHP 8.1 "strlen(null)" exception rendering a commit in Diffusion when bugtraq.url = null.
Jun 12 2023, 01:20
speck requested changes to D25286: Fix PHP 8.1 "strlen(null)" exceptions trying to browse Diffusion repository code.
Jun 12 2023, 00:46
speck accepted D25287: Fix PHP 8.1 "strlen(null)" exceptions trying to browse Diffusion repository history.
Jun 12 2023, 00:44

Jun 11 2023

speck accepted D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed.
Jun 11 2023, 13:18

Jun 10 2023

speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 10 2023, 19:51
speck accepted D25240: Fix PHP 8.1 "strlen(null)" exception which blocks rendering errors on Create Blueprint page.

For additional context the use of the phutil function would add the intent of the value being a string so my preference is to only use it if we’re sure the variable is intended to only be of type string. Here I think it’s less clear.

Jun 10 2023, 19:50
speck added inline comments to D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed.
Jun 10 2023, 19:43
speck added a comment to D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed.

Correct, this change is what I was suggesting and not trying to continue if there’s no file data. If someone is calling the api to upload a file but doesn’t give any file data that’s a user/caller error and the server-side api execution has no sensible path forward.

Jun 10 2023, 19:41
speck accepted D25283: Fix PHP 8.1 "strlen(null)" exception initializing Diffusion repository without path access permissions.
Jun 10 2023, 19:34
speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 10 2023, 19:32
speck accepted D25282: Fix PHP 8.1 "strlen(null)" exception about Staging URI on Diffusion repo History page.

Thanks!

Jun 10 2023, 14:36
speck added inline comments to D25148: Config page: add lovely git-related error messages in standard error log.
Jun 10 2023, 14:31
speck accepted D25259: Fix PHP 8.1 "trim(null)" exception which blocks rendering Conduit's harbormaster.sendmessage page.

I think !strlen(trim($var)) is more semantically meaningful than comparing to the empty string but this is fine. Locating calls to strlen which do not compare its return value to another value is more indicative of a non-empty check m, and easier to identify later on

Jun 10 2023, 14:22
speck requested changes to D25282: Fix PHP 8.1 "strlen(null)" exception about Staging URI on Diffusion repo History page.

Could you make these null-and-strlen checks instead? Notice that within the strlen check it uses “renderOldValue” instead of the old value directly, suggesting it might not be a string

Jun 10 2023, 14:18
speck added a comment to D25149: Config page: add $HOME to allow a gitconfig and help on "dubious ownership".

I agree with a more targeted change of a git-specific argument if possible

Jun 10 2023, 14:16

Jun 8 2023

speck accepted D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).

Thanks!

Jun 8 2023, 18:25
speck accepted D25277: PHP 8.1 "strlen(null)" exception on SVN History page after changing "Import Only".
Jun 8 2023, 11:09
speck accepted D25271: Fix PHP 8.1 "strlen(null)" exceptions creating a Diffusion Identity without entering assignee.
Jun 8 2023, 11:09
speck accepted D25264: Fix some PHP 8.1 "strlen(null)" exceptions on Differential Revision page.
Jun 8 2023, 11:08
speck accepted D25265: Fix PHP 8.1 "strlen(null)" exception on History page of Diffusion repo after renaming default branch.

These are likely fine. The reason for preferring null check instead is if there’s uncertainty that the values could ever be anything besides null or string. The nonemepty string check might reject something that was previously accepted, where an object that overrides __toString would have strlen and friends operate on the toString function but the object itself is still used/passed. In this case I think it’s likely fine.

Jun 8 2023, 11:08
speck accepted D25263: Fix PHP 8.1 "preg_match(null)" exception on "Create Revision" page in Differential when not entering data.
Jun 8 2023, 11:06
speck accepted D25191: Auto-subscription: little less verbose.
Jun 8 2023, 01:11 · UX
speck accepted D25120: Mobile: hide unuseful "Persistent Chat" checkbox.
Jun 8 2023, 01:01
speck accepted D25176: Fix PHP 8.1 "strlen(null)" exception which blocks creating a project with an empty Description field.
Jun 8 2023, 01:00
speck requested changes to D25239: Fix PHP 8.1 exceptions which block rendering Drydock's Create Blueprint page.
Jun 8 2023, 00:59
speck requested changes to D25240: Fix PHP 8.1 "strlen(null)" exception which blocks rendering errors on Create Blueprint page.
Jun 8 2023, 00:51
speck requested changes to D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed.
Jun 8 2023, 00:49
speck requested changes to D25259: Fix PHP 8.1 "trim(null)" exception which blocks rendering Conduit's harbormaster.sendmessage page.
Jun 8 2023, 00:38
speck requested changes to D25263: Fix PHP 8.1 "preg_match(null)" exception on "Create Revision" page in Differential when not entering data.
Jun 8 2023, 00:36
speck requested changes to D25264: Fix some PHP 8.1 "strlen(null)" exceptions on Differential Revision page.
Jun 8 2023, 00:34
speck requested changes to D25265: Fix PHP 8.1 "strlen(null)" exception on History page of Diffusion repo after renaming default branch.
Jun 8 2023, 00:33
speck added inline comments to D25265: Fix PHP 8.1 "strlen(null)" exception on History page of Diffusion repo after renaming default branch.
Jun 8 2023, 00:33
speck accepted D25267: Fix PHP 8.2 "trim(null)" exception which causes Conduit's user.whoami to fail.
Jun 8 2023, 00:32
speck requested changes to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 8 2023, 00:32
speck requested changes to D25271: Fix PHP 8.1 "strlen(null)" exceptions creating a Diffusion Identity without entering assignee.
Jun 8 2023, 00:29
speck accepted D25273: Fix PHP 8.1 "strlen(null)" exception setting a Diffusion repo URI when diffusion.ssh-host is null.
Jun 8 2023, 00:28
speck accepted D25277: PHP 8.1 "strlen(null)" exception on SVN History page after changing "Import Only".
Jun 8 2023, 00:27
speck accepted D25278: Fix PHP 8.1 "strlen(null)" exception on SVN repo page with no branches.
Jun 8 2023, 00:26
speck accepted D25279: Fix PHP 8.1 "strlen(null)" exception viewing branches of non-existing Hg repo.

oop

Jun 8 2023, 00:25
speck requested changes to D25279: Fix PHP 8.1 "strlen(null)" exception viewing branches of non-existing Hg repo.
Jun 8 2023, 00:25

Jun 7 2023

smith awarded T15453: Diffusion: Create Identity form is incomplete a Like token.
Jun 7 2023, 18:04 · Bug Reports, Diffusion
speck added a comment to T15443: Add Diffusion policy capability "Can Edit and View Identities".

The "Create Identity" button on /diffusion/identity/ should be guarded by this new policy access, though currently that form is not functional - see T15453

Jun 7 2023, 18:03 · Diffusion, Policy
speck added a comment to T15440: PHP 8.1 strlen(null) and mb_detect_encoding(null) exceptions creating a Diffusion Identity without entering assignee.

Split to T15453

Jun 7 2023, 17:59 · PHP 8 support
speck created T15453: Diffusion: Create Identity form is incomplete.
Jun 7 2023, 17:59 · Bug Reports, Diffusion
speck added a comment to T15440: PHP 8.1 strlen(null) and mb_detect_encoding(null) exceptions creating a Diffusion Identity without entering assignee.

I mentioned in the diff but the "Create Identity" page appears to be incomplete and the issues here and while it uncovers some additional PHP-8 issues after addressing them the functionality of this form would still be incorrect.

Jun 7 2023, 02:16 · PHP 8 support

Jun 6 2023

speck added a comment to D25271: Fix PHP 8.1 "strlen(null)" exceptions creating a Diffusion Identity without entering assignee.

I think there's another issue here. I don't think this functionality is fleshed out and not an issue with PHP 8.1/2. On this install and others I get 502 gateway when trying to use the Create Identity form. I tried playing around with updating PhabricatorRepositoryEditEngine::newEditableObject() so that it assigns the authorPHID (the field I initially see being reported as not allowed to be null) so it's the current viewer. After doing that I got another error about the identity hash not being allowed to be null. Because of this I don't think we should update getUTF8StringFromStorage() here and just expect this form to blow up for the time being.

Jun 6 2023, 01:37
speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 6 2023, 00:33

Jun 5 2023

speck added inline comments to D25058: Fix broken file PHID extraction that causes Pholio uploads to crash.
Jun 5 2023, 17:38 · Pholio
speck updated subscribers of T15322: Footer: specify a default Libre license for Phorge contents.

What is being referred to as "Public Contents"? Wiki documentation? Diviner documentation? Ponder questions/answers? Other than those I'm not sure that should apply.

Jun 5 2023, 16:16 · Discussion Needed, Governance
valerio.bozzolan awarded T15289: Update Figlet implementation to be PHP8 compatible a Love token.
Jun 5 2023, 13:20 · PHP 8 support
valerio.bozzolan awarded D25142: Update Figlet implementation to be PHP8 compatible a Love token.
Jun 5 2023, 13:20
speck closed T15289: Update Figlet implementation to be PHP8 compatible, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jun 5 2023, 13:17 · PHP 8 support
speck closed T15289: Update Figlet implementation to be PHP8 compatible as Resolved by committing rP71e4eee275f5: Update Figlet implementation to be PHP8 compatible.
Jun 5 2023, 13:17 · PHP 8 support
speck closed D25142: Update Figlet implementation to be PHP8 compatible.
Jun 5 2023, 13:17
speck committed rP71e4eee275f5: Update Figlet implementation to be PHP8 compatible (authored by valerio.bozzolan).
Update Figlet implementation to be PHP8 compatible
Jun 5 2023, 13:17

Jun 3 2023

speck added a comment to T15045: Support SSL/TLS for MariaDB connections.

Taking a stab at what it would look like in D25276: Add support for secure connections to the database. It's not tested at all yet but I think that's roughly the shape it would take. I haven't looked into how this would affect cluster environments but I think that is covered.

Jun 3 2023, 21:35 · Security
speck added inline comments to D25275: fix strlen in PhabricatorMailManagementShowOutboundWorkflow.
Jun 3 2023, 19:01 · PHP 8 support
speck added a comment to D25270: Dashboards: add capability who can create Dashboards.

Is a database migration needed to update existing installs or will the default just apply?

Jun 3 2023, 18:58
speck accepted D25274: Teach `./bin/celerity` about sprite maps.
Jun 3 2023, 16:48
speck added a comment to T15091: Possible to find whether an email is attached to an account.

Yes. The trade off would be user experience. I have absolutely spent 15+ minutes waiting for a reset email on sites after having either typo’d or put in a different email address from the one I signed up with.

Jun 3 2023, 16:08 · People, Security
speck added a comment to T15443: Add Diffusion policy capability "Can Edit and View Identities".

As an approach this seems good to me. Would it make sense to put creating identities behind the existing Edit policy of the repository?

Jun 3 2023, 15:59 · Diffusion, Policy
speck added inline comments to D25274: Teach `./bin/celerity` about sprite maps.
Jun 3 2023, 15:48

Jun 2 2023

speck added a comment to T15135: Unable to set 'Can Browse User Directory' to public.

I wonder if this is related to not being able to use the Diffusion repository file auto-complete when not logged in even though the repo is publicly accessible.

Jun 2 2023, 03:53 · People, Policy, Bug Reports, User-Cigaryno
speck added a comment to T15265: Exception when importing Mercurial repository with non-UTF-8 characters in filenames.

Could you check whether your install is running with this change? https://secure.phabricator.com/D21676

Jun 2 2023, 03:48 · Diffusion
speck added a comment to T15250: Raw use of "git diff" provides insufficient Diff Context.

Arcanist internally generates a diff that includes a similar suggested parameter to account for the entire file contents being present in the resulting diff.

Jun 2 2023, 03:44 · Affects-FreeBSD, Differential

Jun 1 2023

speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 1 2023, 21:10
speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 1 2023, 20:31
speck added inline comments to D25268: Fix PHP 8.2 "strlen(null)" exceptions block rendering Differential Revision page (T15432 - 1/2).
Jun 1 2023, 20:27