Page MenuHomePhorge
Feed Advanced Search

Jan 21 2024

aklapper updated the diff for D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

Also remove unused $result array

Jan 21 2024, 12:38
aklapper added a comment to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

I propose to remove that unused $result array. It's been unused before and looks we were not aware of any issues created by that fact.

Jan 21 2024, 12:35
aklapper added a comment to D25522: Remove bottom margin from embedded remarkup images.

Original change which triggered this: rP324470e39b0d4539a7487c2144157d686f5d0906

Jan 21 2024, 11:54

Jan 20 2024

aklapper added a comment to T15322: Footer: specify a default Libre license for Phorge contents.

User content is also content, thus yes.

Jan 20 2024, 08:05 · Discussion Needed, Governance

Jan 19 2024

aklapper added a comment to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

I'm still puzzled by the unused $result variable in line 46.

Jan 19 2024, 19:31
aklapper added a comment to D25369: Quote Comment: set meaningful URL.

Tested locally and works in most cases, however would love to avoid creating broken (404) URIs due to T15579 before merging

Jan 19 2024, 01:50 · Comments
aklapper added a comment to T15579: Legalpad and Phame: "Quote Comment" destination is a "not found" page.

Note that at least for Phame, http://phorge.localhost/J1 seems to always redirect to http://phorge.localhost/phame/post/view/1/blogpost/ instead of keeping the monogram in the URI.
So the baseURI is already wrong (not being http://phorge.localhost/ only) before concatenating the $ref (monogram and anchor).
As an ugly workardound, could probably make "Quote Comment" work by calling getObjectNamePrefix() in PhamePostRemarkupRule and LegalpadDocumentRemarkupRule and then use them in a preg_match to remove the monogram from the $ref but function is protected and... still ugly.

Jan 19 2024, 01:49 · Phame, Bug Reports, User-valerio.bozzolan

Jan 18 2024

aklapper added a comment to D25505: Improve handling queries with "Current Viewer" set while not logged in.

How about other functions that might require a logged-in user? "current Viewer's Projects" for example?

Jan 18 2024, 21:23
aklapper added a comment to T15715: Typehead results of main search should not truncate important information.

My fix would work with this css class

I did not realize you had a fix. Please share it. :)

Jan 18 2024, 08:22 · Discussion Needed, UX

Jan 17 2024

aklapper added a comment to E38: Phorge talk FOSDEM 2024.

For parallel popcorn consumption, a slightly related (and slightly hung over) FOSDEM talk from 2015 with some shattered dreams included, from the perspective of an organization at that time: https://archive.fosdem.org/2015/schedule/event/wikimedia_adopts_phabricator/

Jan 17 2024, 22:23
aklapper is attending E38: Phorge talk FOSDEM 2024.
Jan 17 2024, 22:13
aklapper added a comment to T15715: Typehead results of main search should not truncate important information.

I guess you could get the result that you're looking for by editing the file webroot/rsrc/css/aphront/typeahead.css and removing the line white-space: nowrap; from the definition of div.jx-typeahead-results a.jx-result. I just don't know which side effects this may have in other places...

Jan 17 2024, 19:07 · Discussion Needed, UX
aklapper added inline comments to D25518: Allow setting default value for SearchFields; set Maniphest Page Size to 100.
Jan 17 2024, 18:46 · Maniphest
aklapper closed T15710: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 17 2024, 15:13 · PHP 8 support
aklapper closed T15710: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types as Resolved by committing rP7702772b2b86: preg_match() null exception setting custom user profile image with empty files..
Jan 17 2024, 15:13 · PHP 8 support
aklapper closed D25516: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types.
Jan 17 2024, 15:13
aklapper committed rP7702772b2b86: preg_match() null exception setting custom user profile image with empty files..
preg_match() null exception setting custom user profile image with empty files.
Jan 17 2024, 15:13
aklapper requested review of D25519: Validate PhabricatorSearchTextField value not to be an array.
Jan 17 2024, 15:07
aklapper added a revision to T15714: Validate PhabricatorSearchTextField value: D25519: Validate PhabricatorSearchTextField value not to be an array.
Jan 17 2024, 15:07
aklapper created T15714: Validate PhabricatorSearchTextField value.
Jan 17 2024, 15:03
aklapper added a comment to D25518: Allow setting default value for SearchFields; set Maniphest Page Size to 100.

This patch is a cleaner approach to tackle T15676 than D25479 was.
In future steps,

Jan 17 2024, 14:51 · Maniphest
aklapper requested review of D25518: Allow setting default value for SearchFields; set Maniphest Page Size to 100.
Jan 17 2024, 14:46 · Maniphest
aklapper added a revision to T15676: Empty "Page Size" field in Maniphest Advanced Search should display "100" by default: D25518: Allow setting default value for SearchFields; set Maniphest Page Size to 100.
Jan 17 2024, 14:46
aklapper updated the summary of D25483: fix PHP 8 "strlen(null)" when testing the ssh setup.
Jan 17 2024, 11:38 · PHP 8 support

Jan 16 2024

aklapper added a comment to T15387: Multi-Factor Auth setup dialog shows three times same option.

Nah, I vaguely remember I accidentally set up something which didn't make sense and the followup PEBKAC moment when realizing but don't remember details now

Jan 16 2024, 22:44
aklapper added a comment to D25515: Avoid exception setting project profile image when GD not installed.

I wonder if it then, upon deletion of the profile image, it attempts to delete the builtin image

Jan 16 2024, 22:40
aklapper abandoned D25479: Display default "Page Size" value in Maniphest Advanced Search form.

Abandoning my patch becaue creating a child class for each and every single field does not scale.
Instead there should be a setDefaultValue() function on a PhabricatorSearchField level to be called by the SearchEngine.

Jan 16 2024, 13:53

Jan 15 2024

aklapper closed T15387: Multi-Factor Auth setup dialog shows three times same option as Invalid.

Indeed, this is invalid due to me not understanding the config settings at that time.

Jan 15 2024, 11:11
aklapper added a subtask for T15123: Javelin Support stuff: T15669: Document how to install javelinsymbols.
Jan 15 2024, 09:29
aklapper added a parent task for T15669: Document how to install javelinsymbols: T15123: Javelin Support stuff.
Jan 15 2024, 09:29
aklapper renamed T15123: Javelin Support stuff from Javeline Support stuff to Javelin Support stuff.
Jan 15 2024, 09:28

Jan 14 2024

aklapper added a comment to D25484: fix PHP 8 "strlen(null)" when moving paths with missing options.

@jeanguyomarch: Hi, would you like to arc land your accepted patch?

Jan 14 2024, 23:41
aklapper added a comment to T15659: Transaction log entries for policy of manually created Diff lack label in Feed (which triggers a PHP 8.1 exception).

My initial choice of words was wrong: It's not "duplicated". SELECT * FROM differential_difftransaction WHERE dateCreated > 1705224003; shows two transactions differing in id, phid and transactionType (differential:diff:create versus core:view-policy).

Jan 14 2024, 23:35
aklapper requested review of D25517: Mark manually created Diffs as new objects to fix empty Feed transaction entries.
Jan 14 2024, 23:33
aklapper added a revision to T15659: Transaction log entries for policy of manually created Diff lack label in Feed (which triggers a PHP 8.1 exception): D25517: Mark manually created Diffs as new objects to fix empty Feed transaction entries.
Jan 14 2024, 23:33
aklapper updated the task description for T15659: Transaction log entries for policy of manually created Diff lack label in Feed (which triggers a PHP 8.1 exception).
Jan 14 2024, 17:41
aklapper renamed T15659: Transaction log entries for policy of manually created Diff lack label in Feed (which triggers a PHP 8.1 exception) from Duplicated Transaction log entry for Diff creation (and PHP 8.1 exception) to Transaction log entries for policy of manually created Diff lack label in Feed (which triggers a PHP 8.1 exception).
Jan 14 2024, 17:35
aklapper added a comment to D25419: Fix the whitespace issue in the message "Access Denied: Restricted File".

I'm just unsure between implode() or phutil_implode_html()

Jan 14 2024, 17:05 · UX
aklapper closed T15656: Clicking "Clone" in a Diffusion repo gives an error, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 14 2024, 11:48 · PHP 8 support
aklapper closed T15656: Clicking "Clone" in a Diffusion repo gives an error as Resolved.

https://we.phorge.it/source/phorge/browse/master/src/applications/repository/storage/PhabricatorRepository.php$348 got fixed by rP222a6fea0a1d9318198fe73a0501cf6444420ce3 in T15658, thus resolving

Jan 14 2024, 11:48 · PHP 8 support, Diffusion
aklapper added a comment to D25515: Avoid exception setting project profile image when GD not installed.

Do we have a setup-warning about the gd extension being missing?

Jan 14 2024, 11:24
aklapper requested review of D25516: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types.
Jan 14 2024, 11:18
aklapper added a revision to T15710: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types: D25516: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types.
Jan 14 2024, 11:18 · PHP 8 support
aklapper created T15710: preg_match() null exception setting custom user profile image with empty files.viewable-mime-types.
Jan 14 2024, 11:17 · PHP 8 support
aklapper added a comment to T15669: Document how to install javelinsymbols.

(see also https://secure.phabricator.com/T2378 which links D5561, D5968, D5670 for those not logged in.)

Jan 14 2024, 10:41
aklapper accepted D25419: Fix the whitespace issue in the message "Access Denied: Restricted File".

I believe I had some weird aggressive local browser cache pollution with rPaa8af1d79e8bfeb09e72d5e3b9330780e78b7aeb as I cannot reproduce the wordmark problem anymore, so: LGTM

Jan 14 2024, 09:13 · UX
aklapper closed T15666: Align logo image and text in site header as Resolved.

As the patch was merged I assume that this issue is resolved. If not, then please reopen - thanks!

Jan 14 2024, 09:10 · Phorge

Jan 13 2024

aklapper closed T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark as Resolved by committing rARC6c7caf3572f4: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 21:05 · Differential
aklapper closed D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 21:05
aklapper committed rARC6c7caf3572f4: Correct manual upload of Differential patch with a leading BOM.
Correct manual upload of Differential patch with a leading BOM
Jan 13 2024, 21:05
aklapper requested review of D25515: Avoid exception setting project profile image when GD not installed.
Jan 13 2024, 20:54
aklapper added a revision to T15326: PHP 8.0 without GD installed: Unhandled Exception setting a project profile image: Call to undefined function imagecreatefromstring(): D25515: Avoid exception setting project profile image when GD not installed.
Jan 13 2024, 20:54 · Files, PHP 8 support
aklapper updated the summary of D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 18:49
aklapper added a comment to D25514: Correct manual upload of Differential patch with a leading BOM.

Is the input to parseDiff guaranteed to be UTF-8 encoded?

Jan 13 2024, 18:45
aklapper updated the task description for T15326: PHP 8.0 without GD installed: Unhandled Exception setting a project profile image: Call to undefined function imagecreatefromstring().
Jan 13 2024, 14:32 · Files, PHP 8 support
aklapper added a comment to T15638: RuntimeException: "Undefined index" when left diff does not exist in DifferentialRevisionTimelineEngine.php.

I'm tempted to just change that one line to $left = idx($view_data, 'left', 0); so there shoud not be a crash at this stage anymore but instead the default value 0 is passed to the DifferentialDiffQuery and to the new DifferentialTransactionView... but I lack a reproducer to check if all other code is fine with this.

Jan 13 2024, 13:35
aklapper closed T15511: Do not require the real name during registration as Invalid.

PHP 8.2.14, Phorge at cc964550f945b08c64970c01a34b55314e8ef0aa

  1. As an admin, check that /config/edit/user.require-real-name/ is set to Make real names optional
  2. Log out of Phorge
  3. Go to http://phorge.localhost/auth/register/
  4. See that the Real Name field does not state Required on the right
  5. Enter values into the fields Username, Password, Confirm Password, Email
  6. Click the Register Account button
Jan 13 2024, 11:46 · Auth
aklapper added a comment to T15511: Do not require the real name during registration.

Reference: rPdfcccd4cb882a171d10ba8a5c2763dcc73654256

Jan 13 2024, 10:55 · Auth
aklapper added a revision to T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark: D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 10:21 · Differential
aklapper requested review of D25514: Correct manual upload of Differential patch with a leading BOM.
Jan 13 2024, 10:21
aklapper added a comment to T15322: Footer: specify a default Libre license for Phorge contents.

+1 on Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses.

Jan 13 2024, 03:06 · Discussion Needed, Governance
aklapper added a comment to T15582: Allow blocking users.

clarify why the Disable User button [...] not sufficient for this purpose.

Jan 13 2024, 03:01 · Clarification Needed
aklapper added a comment to T15701: Clarify that a Project is just a "Tag".

I'd like to keep this boring:
Projects are hashtags are tags. You can use them for code bases, teams, or anything you need to group.

Jan 13 2024, 02:54 · UX, Projects
aklapper renamed T15452: Differential drops a diff's first hunk if the file starts with a Byte-order-Mark from Differntial drops a diff's first hunk if the file starts with a Byte-order-Mark to Differential drops a diff's first hunk if the file starts with a Byte-order-Mark.
Jan 13 2024, 02:50 · Differential
aklapper updated aklapper.
Jan 13 2024, 02:43
aklapper accepted D25507: Config User Extra Fields: link to the doc (like Maniphest).
Jan 13 2024, 02:37
aklapper closed T15707: Long labels overlap in Add Action area as Resolved by committing rPcc964550f945: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 13 2024, 02:30
aklapper closed D25511: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 13 2024, 02:30
aklapper committed rPcc964550f945: Ellipsize long labels in Add Action area to avoid text overlap.
Ellipsize long labels in Add Action area to avoid text overlap
Jan 13 2024, 02:30

Jan 12 2024

valerio.bozzolan awarded T15631: "Map returned omits required key" exception for second result page (cursor) for Maniphest search ordered by custom field a Yellow Medal token.
Jan 12 2024, 22:12 · Affects-Wikimedia, Bug Reports
aklapper added a comment to D25513: Work in progress discord auth.

Also, apart from the linter results, this patch should not include the changes from D25512

Jan 12 2024, 12:26 · Auth
aklapper updated the diff for D25503: Allow to uninstall (hide) Audit application.

Also hide "Buckets" search field on diffusion/commit/query/advanced/ when Audit is uninstalled

Jan 12 2024, 12:25
aklapper added a comment to D25507: Config User Extra Fields: link to the doc (like Maniphest).

Yeah I honestly don't know if uppercase or lowercase.

Jan 12 2024, 12:12
aklapper updated the diff for D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

manual rebase

Jan 12 2024, 12:07
aklapper accepted D25495: Auth SSH Details: show Public Key (not just Type).

LGTM. Tested locally and works as expected, use case also makes sense, plus this is only about public keys.

Jan 12 2024, 12:03
aklapper retitled D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML from Fixed get title error when opening auth page, see T15706
Jan 12 2024, 11:58
aklapper added a comment to D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.
if (!is_array($value)) {  // ←←←←←←←←← May be this needs to be converted to is_string($value) or similar thing

This seems reasonable since it's nonsense to me to decode an integer, or decode a float. Only decoding a string makes sense to me.

Jan 12 2024, 11:47
aklapper updated the diff for D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists.

Only call json_decode() in PhabricatorStandardCustomFieldPHIDs.php on string values, instead of not calling setValueFromApplicationTransactions() in PhabricatorCustomFieldEditField.php as proposed by Valerio

Jan 12 2024, 11:46
aklapper added a comment to D25507: Config User Extra Fields: link to the doc (like Maniphest).

Tested locally, all in all +1 but capitalization is inconsistent comparing to maniphest.custom-field-definitions: Custom Fields twice and User Profiles once should use lower-case.

Jan 12 2024, 10:59
aklapper closed T15691: PHP 8.1 "strlen(null)" exception creating Maniphest task when custom select field configured, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 12 2024, 07:40 · PHP 8 support
aklapper closed T15691: PHP 8.1 "strlen(null)" exception creating Maniphest task when custom select field configured as Resolved by committing rP8e09dbfee343: Fix PHP 8.1 exception creating task when custom select field configured.
Jan 12 2024, 07:40 · PHP 8 support
aklapper closed D25494: Fix PHP 8.1 exception creating task when custom select field configured.
Jan 12 2024, 07:40
aklapper committed rP8e09dbfee343: Fix PHP 8.1 exception creating task when custom select field configured.
Fix PHP 8.1 exception creating task when custom select field configured
Jan 12 2024, 07:40
aklapper closed T15687: PHP 8.1 "strlen(null)" exception when custom select field configured, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jan 12 2024, 01:05 · PHP 8 support
aklapper closed T15687: PHP 8.1 "strlen(null)" exception when custom select field configured as Resolved by committing rP40d10fbe1ae6: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 12 2024, 01:05 · PHP 8 support
aklapper closed D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 12 2024, 01:05
aklapper committed rP40d10fbe1ae6: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Fix PHP 8.1 "strlen(null)" exception when custom select field configured
Jan 12 2024, 01:05
aklapper updated the diff for D25494: Fix PHP 8.1 exception creating task when custom select field configured.

Use strlen() instead of empty string check

Jan 12 2024, 01:04

Jan 11 2024

aklapper updated the diff for D25503: Allow to uninstall (hide) Audit application.

Simplify some code / fix TODOs as proposed by Valerio

Jan 11 2024, 23:22
aklapper added a comment to D25503: Allow to uninstall (hide) Audit application.

Just for the records and bystanders: All expectations described in D25503#14539 are also what the patch currently does.

Jan 11 2024, 23:21
aklapper updated the diff for D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.

Use strlen() instead of empty string check

Jan 11 2024, 22:33
aklapper added inline comments to D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.
Jan 11 2024, 22:32
aklapper added a comment to D25503: Allow to uninstall (hide) Audit application.

Ideally, comments are a general things and should be kept. Also changing Tags and Subscribers etc. is generic and should be kept.

Jan 11 2024, 21:20
aklapper added a comment to D25494: Fix PHP 8.1 exception creating task when custom select field configured.

Does anyone dare to accept the last revision? :)

Jan 11 2024, 21:09
aklapper added a comment to D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured.

The updated one-liner welcomes another review :)

Jan 11 2024, 21:00
aklapper requested review of D25511: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 11 2024, 18:16
aklapper added a revision to T15707: Long labels overlap in Add Action area: D25511: Ellipsize long labels in Add Action area to avoid text overlap.
Jan 11 2024, 18:16
aklapper created T15707: Long labels overlap in Add Action area.
Jan 11 2024, 18:16
aklapper closed D25510: Fix invalid CSS property value.
Jan 11 2024, 12:54
aklapper committed rP49c3fe619342: Fix invalid CSS property value.
Fix invalid CSS property value
Jan 11 2024, 12:54