Page MenuHomePhorge
Feed All Stories

Nov 14 2023

valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

(I will immediately hard-approve this lovely change as soon as we share whatever ACK like "Yeah let's log the planet" or "Yeah let's just show a user message")

Nov 14 2023, 11:14
valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

OK the situation is a bit more clear now.

Nov 14 2023, 11:12
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

More complete test case added to D25472 which demonstrates the following error:

Nov 14 2023, 11:10 · Arcanist
Sten updated the test plan for D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 11:06
valerio.bozzolan added a comment to T15624: RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

Interesting. I think this specific crash was not caused by a specific document, but it was probably caused by a specific nonsense request with a nonsense encoding.

Nov 14 2023, 10:56
aklapper updated the diff for D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

Good points. This patch puts also the exception message into phlog.

Nov 14 2023, 10:34
Sten updated the test plan for D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57
Sten requested review of D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57
Sten added a revision to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option: D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Nov 14 2023, 09:57 · Arcanist
valerio.bozzolan added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
In T15667#14211, @Sten wrote:

how many people use Phabricator/Phorge :-(

Nov 14 2023, 09:38 · Arcanist
valerio.bozzolan edited the content of Organizations Using Phorge.
Nov 14 2023, 09:37
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

I guess the documentation needs an update on page https://we.phorge.it/book/phorge/article/arcanist_lint_unit/ and/or https://we.phorge.it/book/phorge/article/arcanist_new_project/

Nov 14 2023, 09:28 · Arcanist
valerio.bozzolan accepted D25276: Add support for secure connections to the database.

I basically completely trust speck if they say this works with TLS, and I verified this works without TLS. Tried with / without this configuration.

Nov 14 2023, 09:28
Sten added a comment to T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.

6 year old in-your-face unreported bugs like these make me wonder how many people use Phabricator/Phorge :-(

Nov 14 2023, 09:22 · Arcanist
valerio.bozzolan added a comment to D25418: Catch RuntimeException: mb_convert_encoding(): Illegal character encoding specified at PhabricatorTextDocumentEngine.php:73.

(I share the same question from Sten)

Nov 14 2023, 08:27
valerio.bozzolan accepted D25422: Fix a PHP 8.1 deprecated use of strlen with a NULL argument on commit page.

I'm 5% scared by this since in 8 months we may discover that $author could be an object and so an user may report our well-known exception in some cases. But, the method name is getAuthorString() so I'm quite sure that Evan Priestley already choosen that name for a reason, and so, probably the getAuthor() is always a string or null and nothing else, so it's nice to report alien things with an exception, as proposed here.

Nov 14 2023, 08:20
valerio.bozzolan triaged T15668: [Performance] Avoid to calculate a string length, if we are just interested in "is empty" as Wishlist priority.
Nov 14 2023, 08:09
valerio.bozzolan created T15668: [Performance] Avoid to calculate a string length, if we are just interested in "is empty".
Nov 14 2023, 08:00
Sten claimed T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
Nov 14 2023, 07:40 · Arcanist
Sten created T15667: Update PhpunitTestEngine to not call phpunit with --log-json option.
Nov 14 2023, 07:40 · Arcanist
valerio.bozzolan added a comment to D25428: Fix the issue about persistent chat setting icon being clickable when the chat is collapsed.
  • We don't use document.querySelector - we use JX.DOM.find, you can see an example in line 43
Nov 14 2023, 07:38
valerio.bozzolan added a comment to D25466: Improve command line prompts in setup issue pages.

I love your change. Simple and effective and without impact on other parts.

Nov 14 2023, 07:29 · Config, UX
valerio.bozzolan updated the name of F397638: Prompt proposal.png from "Screenshot_2023_11_14_075710.png" to "Prompt proposal.png".
Nov 14 2023, 06:57

Nov 13 2023

waldyrious updated the diff for D25466: Improve command line prompts in setup issue pages.
  • Fix double prompt marker
Nov 13 2023, 23:30 · Config, UX
waldyrious added inline comments to D25466: Improve command line prompts in setup issue pages.
Nov 13 2023, 23:28 · Config, UX
waldyrious added a comment to D25466: Improve command line prompts in setup issue pages.

Nice catches, @valerio.bozzolan — will fix.

Nov 13 2023, 23:23 · Config, UX
valerio.bozzolan updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

celerity

Nov 13 2023, 21:37 · Diffusion
valerio.bozzolan updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.

Hoping to be useful, proposing minor things. Feel free to say "AAAH NOPE" :D

Nov 13 2023, 21:36 · Diffusion
valerio.bozzolan added a comment to D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
NOTE: In short, feel free to just see the last diff and ignore this comment. If you like, nice! <3 If you don't, say so and I rollback. Thanks :D
Nov 13 2023, 21:30 · Diffusion
valerio.bozzolan accepted D25471: Updates for Mercurial's HTTP protocol.

I completely trust Speck and Evan Priestley that already reviewed this in secure dot. So...

Nov 13 2023, 21:02
valerio.bozzolan edited the content of Code Differences between Phabricator and Phorge.
Nov 13 2023, 21:00
valerio.bozzolan foisted D25471: Updates for Mercurial's HTTP protocol upon speck.

Restoring original author :) Thanks speck

Nov 13 2023, 20:59
valerio.bozzolan requested review of D25471: Updates for Mercurial's HTTP protocol.
Nov 13 2023, 20:58
valerio.bozzolan edited the content of Update From Phabricator.
Nov 13 2023, 20:41
valerio.bozzolan updated subscribers of Update From Phabricator.

Hi @Cigaryno thanks for this change but we are causing some confusion since the mentioned commit 40b272fa is not in Phorge (as reported by the kind @jmeador from Mozilla). I will try editing a bit. Feel free to review then.

Nov 13 2023, 20:32
valerio.bozzolan edited the content of Code Differences between Phabricator and Phorge.
Nov 13 2023, 19:35
valerio.bozzolan edited the content of Code Differences between Phabricator and Phorge.
Nov 13 2023, 18:48
valerio.bozzolan retitled D25441: Fix possible array to string conversion renaming Pholio Mockup image from Fix array to string conversion renaming several Pholio mockup images at once
Nov 13 2023, 17:27
valerio.bozzolan accepted D25441: Fix possible array to string conversion renaming Pholio Mockup image.

So I'm 99.99% sure that $old and $new always are PHID=>title array and always with count($that) === 1 - whenever you rename a single photo or multiple ones. So, I see this as totally OK.

Nov 13 2023, 17:23
valerio.bozzolan added a comment to T15646: Renaming several Pholio Mockup images creates neverending daemon task (PhutilProxyException due to Array to string conversion).

Interestingly I was able to reproduce the issue with this nonsense patch, in the hope to emulate an email plain-text generation, even if it's not the case:

Nov 13 2023, 17:12 · Affects-Wikimedia, Bug Reports
valerio.bozzolan added a comment to T15646: Renaming several Pholio Mockup images creates neverending daemon task (PhutilProxyException due to Array to string conversion).

For interesting reasons, I cannot, in any way, get an email about somebody renaming a single Mockup photo. And, my email preferences are like "email me for everything from every application" and email delivery is "email me about myself".

Nov 13 2023, 17:10 · Affects-Wikimedia, Bug Reports
valerio.bozzolan added a comment to D25441: Fix possible array to string conversion renaming Pholio Mockup image.

I'm now quite sure that $old and $new always are array, and each one consists in a single element with key PHID and value => title.

Nov 13 2023, 16:52
valerio.bozzolan added a comment to Q83: Pull security fixes from Mozilla's fork.

(I also cannot see T15665)

Nov 13 2023, 15:06 · Security, Phorge
20after4 added a comment to T15642: Feed Transaction Logs: Exception: Query overheated: examined more than 1,010 raw rows without finding 101 visible objects..

Maybe this is a clue?

Nov 13 2023, 14:58 · Feed
valerio.bozzolan added a comment to T15486: Do not expose "Contact Numbers" in user settings when no SMS support is set up in Phorge.

Also, I'm OK with the change also because of GDPR's principle of minimization. I mean, Phorge avoids to collect unnecessary data, and this is nice.

Nov 13 2023, 14:52 · Policy
valerio.bozzolan edited the content of Next Up.
Nov 13 2023, 14:51
valerio.bozzolan added a comment to T15486: Do not expose "Contact Numbers" in user settings when no SMS support is set up in Phorge.

As a side note, it's possible that somebody in the world was using the Phone number feature in a way that was then integrated with their custom management system, accessing this information via plain SQL.

Nov 13 2023, 14:37 · Policy
valerio.bozzolan added a comment to D25363: Calendar Import: calendar uploader is not anymore an alien.

I've adopted PhabricatorPeopleUserEmailQuery as suggested.

Nov 13 2023, 13:37
valerio.bozzolan updated the diff for D25363: Calendar Import: calendar uploader is not anymore an alien.

Apply review tips

Nov 13 2023, 13:33
aklapper closed D25452: Do not expose Contact Numbers settings panel when no SMS support configured.
Nov 13 2023, 13:04
aklapper closed T15486: Do not expose "Contact Numbers" in user settings when no SMS support is set up in Phorge as Resolved by committing rP282e37aaf682: Do not expose Contact Numbers settings panel when no SMS support configured.
Nov 13 2023, 13:04 · Policy
aklapper committed rP282e37aaf682: Do not expose Contact Numbers settings panel when no SMS support configured.
Nov 13 2023, 13:04
valerio.bozzolan edited the content of Next Up.
Nov 13 2023, 11:09
valerio.bozzolan added a comment to D25421: Audit Feed: less verbose when the author is the committer.

(Hide all inline comments or this is unreadable)

Nov 13 2023, 10:28
valerio.bozzolan updated the diff for D25421: Audit Feed: less verbose when the author is the committer.

Small improvement thanks to review tip

Nov 13 2023, 10:26
valerio.bozzolan added a comment to D25467: Align logo image and text in site header.
In D25467#13458, @l2dy wrote:

I have verified the fix on Firefox. Are you sure phabricator/c0bdb5b4/core.pkg.css is loaded?

Nov 13 2023, 10:07
l2dy closed D25467: Align logo image and text in site header.
Nov 13 2023, 09:56
l2dy committed rPaa8af1d79e8b: Align logo image and text in site header.
Nov 13 2023, 09:56
l2dy added a comment to D25467: Align logo image and text in site header.

Uh! Nice!

Interestingly this CSS change only has effects on Chromium 119 and it does not change anything in my Mozilla Firefox 118. Can you give a quick look?

Nov 13 2023, 09:46
valerio.bozzolan added inline comments to D25466: Improve command line prompts in setup issue pages.
Nov 13 2023, 08:21 · Config, UX
valerio.bozzolan added inline comments to D25466: Improve command line prompts in setup issue pages.
Nov 13 2023, 08:19 · Config, UX
valerio.bozzolan accepted D25467: Align logo image and text in site header.

Interestingly this CSS change only has effects on Chromium 119 and it does not change anything in my Mozilla Firefox 118. Can you give a quick look?

Nov 13 2023, 07:56
valerio.bozzolan accepted D25436: Update PhutilCowsay.php to work for small cows.

So, no PHP changes? Interesting.

Nov 13 2023, 07:46
l2dy added a comment to Q79: Is arc.land.onto.default configuration deprecated? (Answer 107).

This is related to https://secure.phabricator.com/T13546. "classic" Arcanist workflows were being upgraded to Toolsets, but the migration was not complete. See comments starting with TOOLSETS: , e.g. in ArcanistConfigurationSource.php.

Nov 13 2023, 01:18
l2dy closed D25470: Initialize static variable to make linter happy.
Nov 13 2023, 00:52
l2dy committed rP361fcd0cac36: Initialize static variable to make linter happy.
Nov 13 2023, 00:52
l2dy closed D25469: Fix reentrancy guard in setDebugTimeLimit().
Nov 13 2023, 00:51
l2dy committed rP486fc95b29fd: Fix reentrancy guard in setDebugTimeLimit().
Nov 13 2023, 00:51
l2dy closed D25468: Fix typo in DiffusionLowLevelGitRefQuery.
Nov 13 2023, 00:50
l2dy committed rP4535e8753c8b: Fix typo in DiffusionLowLevelGitRefQuery.
Nov 13 2023, 00:50

Nov 12 2023

waldyrious closed D25465: Fix loop in contribution docs.
Nov 12 2023, 21:07
waldyrious committed rP296ce3956b81: Fix loop in contribution docs.
Nov 12 2023, 21:07
speck accepted D25465: Fix loop in contribution docs.
Nov 12 2023, 21:03
speck accepted D25470: Initialize static variable to make linter happy.
Nov 12 2023, 21:02
speck accepted D25469: Fix reentrancy guard in setDebugTimeLimit().
Nov 12 2023, 21:00
speck accepted D25468: Fix typo in DiffusionLowLevelGitRefQuery.
Nov 12 2023, 20:59
waldyrious updated the diff for D25465: Fix loop in contribution docs.
  • Wrap long line
Nov 12 2023, 20:55
waldyrious added inline comments to D25465: Fix loop in contribution docs.
Nov 12 2023, 20:52
waldyrious updated the diff for D25465: Fix loop in contribution docs.
  • Rephrase Next Steps entry
Nov 12 2023, 20:52
l2dy requested review of D25470: Initialize static variable to make linter happy.
Nov 12 2023, 18:21
l2dy requested review of D25469: Fix reentrancy guard in setDebugTimeLimit().
Nov 12 2023, 18:12
l2dy requested review of D25468: Fix typo in DiffusionLowLevelGitRefQuery.
Nov 12 2023, 17:49
speck published D25276: Add support for secure connections to the database for review.

Opening this up from draft if communication/reviews are happening

Nov 12 2023, 17:09
l2dy asked Q86: Policy lifecycle of security tasks.
Nov 12 2023, 16:17 · Discussion Needed
l2dy closed D25464: Enforce viewable MIME types config on PDF documents.
Nov 12 2023, 16:13
l2dy committed rP16d9cc12af45: Enforce viewable MIME types config on PDF documents.
Nov 12 2023, 16:13
l2dy added inline comments to D25464: Enforce viewable MIME types config on PDF documents.
Nov 12 2023, 16:00
l2dy updated the diff for D25464: Enforce viewable MIME types config on PDF documents.

Phrasing

Nov 12 2023, 15:57
l2dy added inline comments to D25464: Enforce viewable MIME types config on PDF documents.
Nov 12 2023, 15:51
speck accepted D25464: Enforce viewable MIME types config on PDF documents.

Okay I misunderstood the default value. I don’t think a security tag is necessary either.

Nov 12 2023, 15:49
l2dy updated the question details for Q83: Pull security fixes from Mozilla's fork.
Nov 12 2023, 15:42 · Security, Phorge
l2dy added a comment to D25464: Enforce viewable MIME types config on PDF documents.
In D25464#13372, @speck wrote:

This will require documentation of some sort, specifically for the upgrade notes to indicate that if someone relies on rendering PDFs currently then after upgrading they would need to update that configuration.

I think making a task to document the issue and linking in the release notes would be a good approach and what upstream would typically have done.

Nov 12 2023, 15:40
speck added a comment to D25464: Enforce viewable MIME types config on PDF documents.

This will require documentation of some sort, specifically for the upgrade notes to indicate that if someone relies on rendering PDFs currently then after upgrading they would need to update that configuration.

Nov 12 2023, 15:23
Sten added a comment to D25436: Update PhutilCowsay.php to work for small cows.

Any problems with this fix?

Nov 12 2023, 11:13
Sten added a comment to D25439: Fix strlen(null) errors for projects with integer fields under PHP 8.1.

Is switching to using phutil_nonempty_scalar a blocker?
I don't think it should be because otherwise, we could have just done a bulk change across the whole codebase converting

Nov 12 2023, 11:12
Sten updated the diff for D25457: Update diffusion browse to generate Table of Contents when viewed as remarkup.
  • Javascript updated to make collapsible containers more generic, and not specific to indices
  • Removed unused 'active' as per review
  • Moved setting the display of the container from Javascript to CSS as per review
  • Added i18n support for the button text (no need for a TODO!)
  • Extended variable/attribute names to make the code a bit more self-documenting
Nov 12 2023, 11:01 · Diffusion
l2dy closed Q81: Documentation for "Restarting Phabricator" is missing as resolved.
Nov 12 2023, 10:58 · Phorge
l2dy added Q81: Documentation for "Restarting Phabricator" is missing (Answer 110).
Nov 12 2023, 10:58
l2dy closed Q85: How does amending author information work with `arc land`? as resolved.
Nov 12 2023, 10:57
l2dy requested review of D25467: Align logo image and text in site header.
Nov 12 2023, 09:41