Page MenuHomePhorge
Feed All Stories

Mar 16 2024

aklapper added a comment to D25502: Make PhabricatorSearchIntField validate its input.

Would anyone give this another review? Might make sense to apply the one-liner in D25527 to have a simple test case on the Maniphest Advanced Search page

Mar 16 2024, 07:57
aklapper added a comment to D25419: Fix the whitespace issue in the message "Access Denied: Restricted File".

On the other hand, as the variable is called $html_details let's go for phutil_implode_html() to be super-safe? ping @roberto.urbani

Mar 16 2024, 07:56 · UX

Mar 15 2024

avivey updated the task description for T15758: Monitor PHPMailer security.
Mar 15 2024, 19:30 · Security
avivey added a comment to T15758: Monitor PHPMailer security.

CVE-2017-5223, CVE-2018-19296 and CVE-2020-36326:

Mar 15 2024, 19:30 · Security
avivey added a comment to T15758: Monitor PHPMailer security.

CVE-2021-34551:
This one requires passing user-provided input as a filename to the "setLanguage" method; We don't call that method.

Mar 15 2024, 19:15 · Security
avivey updated the task description for T15758: Monitor PHPMailer security.
Mar 15 2024, 19:00 · Security
avivey edited the content of Dependencies.
Mar 15 2024, 18:57
avivey added a comment to T15758: Monitor PHPMailer security.

First pass, these one do not apply to us (and some of them do not apply to anyone at all):

Mar 15 2024, 18:56 · Security
avivey triaged T15758: Monitor PHPMailer security as Normal priority.
Mar 15 2024, 18:44 · Security
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

(I've put a note in Dependencies for now)

Mar 15 2024, 18:23 · Remarkup
avivey created an object: Dependencies.
Mar 15 2024, 18:22
avivey edited the content of Next Up.
Mar 15 2024, 18:00
avivey closed D25551: Arc liberate: support traits.
Mar 15 2024, 17:59
avivey committed rARCf6261dc614a7: Arc liberate: support traits.
Arc liberate: support traits
Mar 15 2024, 17:59
aklapper claimed T15650: AphrontDuplicateKeyQueryException dragging task from milestone column to main board column: Duplicate entry for key 'boardPHID'.
Mar 15 2024, 16:45 · Affects-Wikimedia, Bug Reports
Sten claimed T15757: Arcanist Test Result Parser Updates.
Mar 15 2024, 16:14 · Arcanist
Sten created T15757: Arcanist Test Result Parser Updates.
Mar 15 2024, 16:14 · Arcanist
Sten closed T15667: Update PhpunitTestEngine to not call phpunit with --log-json option as Resolved by committing rARC7c5e607e9752: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use….
Mar 15 2024, 16:09 · Arcanist
Sten closed D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..
Mar 15 2024, 16:09
Sten committed rARC7c5e607e9752: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use….
Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use…
Mar 15 2024, 16:09
valerio.bozzolan updated the diff for D25554: Custom integer fields: fix search by array of possible values.

add inline documentation because we can

Mar 15 2024, 13:03
valerio.bozzolan closed T15164: Resolving without Claiming causes error "Action with no effect" as Resolved by committing rP8fe3d68577b9: Avoid "Action with no effect" for auto-claim statuses after manually removing….
Mar 15 2024, 12:50 · Maniphest, User-valerio.bozzolan
valerio.bozzolan closed D25550: Avoid "Action with no effect" for auto-claim statuses after manually removing assignee.
Mar 15 2024, 12:50
valerio.bozzolan committed rP8fe3d68577b9: Avoid "Action with no effect" for auto-claim statuses after manually removing….
Avoid "Action with no effect" for auto-claim statuses after manually removing…
Mar 15 2024, 12:50
aklapper added a comment to D25546: Warn in comment field if task is closed as duplicate.

I also don't get if in this part we have access to any thing related to Maniphest, ManiphestEditEngine or this kind of stuff, to just call $something->getCommentPanelPlaceholder() and have the business logic there in the specific application itself.

Mar 15 2024, 10:02
valerio.bozzolan added a comment to T15755: PHP 7.3: strpos(): Non-string needles will be interpreted as strings (in arcanist/src/utils/PhutilSortVector.php:33).

Let's split the problems:

Mar 15 2024, 09:37
avivey renamed T15756: Rendering remarkup with many embedded code blocks is very slow from Parsing for a fairly reasonable sized remarkup text takes too long to Rendering remarkup with many embedded code blocks is very slow.
Mar 15 2024, 09:17 · Remarkup
bekay added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

Updated Pygments with pip to 2.17.2 und cut the time in half. So yeah, that's already an improvement.

Mar 15 2024, 09:08 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

I guess we could also try to cache the individual rendered code-blocks.

Mar 15 2024, 09:08 · Remarkup
aklapper added a comment to T15755: PHP 7.3: strpos(): Non-string needles will be interpreted as strings (in arcanist/src/utils/PhutilSortVector.php:33).

I assume we should change strpos("\0", $value) to strpos($value, chr(0))

Mar 15 2024, 09:01
avivey added a comment to D25551: Arc liberate: support traits.

(and I made sure this new function isn't exported to the arc lib namespace)

Mar 15 2024, 08:50
avivey updated the diff for D25551: Arc liberate: support traits.

extract to function

Mar 15 2024, 08:49
avivey added inline comments to D25551: Arc liberate: support traits.
Mar 15 2024, 08:40
bekay added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

Well, good to know that it is not something in the phorge codebase. Our server has pygmentize 2.14.0 - but the server itself is really not the best, so that could be an explanation. Maybe we could make some remarks about performance and keeping the versions fresh on the diviner page...

Mar 15 2024, 08:14 · Remarkup
valerio.bozzolan added a comment to D25551: Arc liberate: support traits.

There is still that minor inline comment here, maybe interesting

Mar 15 2024, 07:55

Mar 14 2024

avivey added a comment to Q119: Pholio support for .svg file extension (Answer 151).

Yeah, it's probably not impossible to so safely - especially since people has been working on it for over a decade - but it's hard to do right. I know Wikipedia allows user-uploaded SVGs in some way, so maybe this is a solved problem.

Mar 14 2024, 22:02
avivey added a comment to D25551: Arc liberate: support traits.

I fixed arc test-traits in R12 (45f900a587).

Mar 14 2024, 21:52
avivey committed R12:45f900a587f4: Move .arcconfig to the right place.
Move .arcconfig to the right place
Mar 14 2024, 21:50
siepkes added a comment to Q119: Pholio support for .svg file extension (Answer 151).

@avivey I have no idea if they are actually any good but PHP based SVG sanitizers like svg-sanitizer exist. I also noticed this Rust based library made by cloudflare svg-hush.

Mar 14 2024, 20:55
valerio.bozzolan added a comment to Q119: Pholio support for .svg file extension (Answer 151).

lol

Mar 14 2024, 18:09
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

Update: I've installed pygments (2.15.1), and it took about 3 seconds to render. It takes about 14 seconds here (with pygments 2.3.1).

Mar 14 2024, 17:46 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

mm, dumping this file in my dev env renders pretty much immediately; that's a good sign that it's the code blocks, because (1) pygments is known to be slow and (2) I don't have it installed.

Mar 14 2024, 17:38 · Remarkup
CryingWolf closed Q119: Pholio support for .svg file extension as resolved.
Mar 14 2024, 17:28
CryingWolf added a comment to Q119: Pholio support for .svg file extension (Answer 151).

Ah, I see - that makes sense. Thank you for the detailed response.

Mar 14 2024, 17:28
valerio.bozzolan added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

I'm quite sure the problem is limited on repeated code blocks.

Mar 14 2024, 17:03 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

"slow remarkup" often boils down to 1-2 inefficient regexp in a rule somewhere.

Mar 14 2024, 16:47 · Remarkup
avivey awarded T15756: Rendering remarkup with many embedded code blocks is very slow a Manufacturing Defect? token.
Mar 14 2024, 16:45 · Remarkup
avivey added Q119: Pholio support for .svg file extension (Answer 151).
Mar 14 2024, 16:41
CryingWolf asked Q119: Pholio support for .svg file extension.
Mar 14 2024, 15:58
valerio.bozzolan triaged T15756: Rendering remarkup with many embedded code blocks is very slow as High priority.

Can reproduce

Mar 14 2024, 15:17 · Remarkup
bekay created T15756: Rendering remarkup with many embedded code blocks is very slow.
Mar 14 2024, 14:46 · Remarkup
avivey triaged T15709: modernize the "add item to menu" flow to deprecate EventListener as Low priority.
Mar 14 2024, 10:52
aklapper added a comment to T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers.

A root problem is that highlighted line number(s) should be a # fragment really, to do not multiply pages exponentially.

Mar 14 2024, 09:53 · Diffusion, Discussion Needed
valerio.bozzolan added a comment to T15755: PHP 7.3: strpos(): Non-string needles will be interpreted as strings (in arcanist/src/utils/PhutilSortVector.php:33).

Apparently PhutilSortVector.php is somehow recent, 2016, without any comment about that strpos("\0", $value) that is probably not correct

Mar 14 2024, 09:38
valerio.bozzolan added a comment to T15755: PHP 7.3: strpos(): Non-string needles will be interpreted as strings (in arcanist/src/utils/PhutilSortVector.php:33).

I also don't understand strpos("\0", $value) since the documentation says that the second argument is the needle

Mar 14 2024, 09:23
aklapper created T15755: PHP 7.3: strpos(): Non-string needles will be interpreted as strings (in arcanist/src/utils/PhutilSortVector.php:33).
Mar 14 2024, 08:38
avivey added a comment to D25051: Destroy file attachments when file is deleted, or object is deleted.

I'm a little worried about this migration; Do we have garbage collector for this? it would be safer to let it run.

You are concerned for performance reasons because it doesn't limit the results. Right?

Mar 14 2024, 08:34 · Files
aklapper updated the diff for D25501: Feed: Do not query and display data of uninstalled applications.

refactor as recommended

Mar 14 2024, 07:33

Mar 13 2024

aklapper accepted D25550: Avoid "Action with no effect" for auto-claim statuses after manually removing assignee.

Thanks, this is way cleaner (and slightly more performant) than my D25476. I've tested this locally, also in combination with other actions (e.g. opening another action field without changing it) and behavior is as expected.

Mar 13 2024, 14:24
valerio.bozzolan updated the diff for D25550: Avoid "Action with no effect" for auto-claim statuses after manually removing assignee.

remove unuseful line - thanks

Mar 13 2024, 14:22
aklapper abandoned D25476: Avoid "Action with no effect" for auto-claim statuses after manually removing assignee.

Superseded by D25550

Mar 13 2024, 14:17
aklapper added a comment to T15121: Contributor Agreement.

Would you like to go to court to defend that statement? :)

Mar 13 2024, 12:54 · Phorge
valerio.bozzolan added a comment to T15121: Contributor Agreement.

OK OK. So what else? Maybe this (mention from https://secure.phabricator.com/p/epriestley/):

Mar 13 2024, 12:42 · Phorge
aklapper added a comment to T15121: Contributor Agreement.

I could not sign it if it required brushing three times a day. Removed purely due to egoistic laziness reasons.

Mar 13 2024, 12:36 · Phorge
valerio.bozzolan added a comment to T15121: Contributor Agreement.

No brushing teeth three times a day? However it looks good to me 👍

Mar 13 2024, 12:20 · Phorge
speck accepted D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

yep!

Mar 13 2024, 11:54
aklapper added a comment to T15121: Contributor Agreement.

Well, I would rewrite quite a bit, so I'll post a draft here before editing directly:

Mar 13 2024, 11:52 · Phorge
valerio.bozzolan added inline comments to D25475: Drag & Drop Task Cover Image: also attach.
Mar 13 2024, 10:14
avivey accepted D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

Looks good to me. @speck

Mar 13 2024, 09:04
avivey edited the content of Report Warnings.
Mar 13 2024, 08:08
valerio.bozzolan added a reviewer for D25550: Avoid "Action with no effect" for auto-claim statuses after manually removing assignee: aklapper.

I forgot to invite the original author. This modification would not exist without aklapper. Eternal glory to aklapper.

Mar 13 2024, 07:34

Mar 12 2024

Sten added a comment to D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

Possible further enhancements, which I am loathe to do when trying to fix an existing bug, so perhaps as a future diff:

Mar 12 2024, 18:39
Sten updated the diff for D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

As per @avivey, update ArcanistPhpunitTestResultParser.php to call ArcanistXUnitTestResultParser and remove it's own XUnit parsing code.

Mar 12 2024, 18:30
valerio.bozzolan added a comment to T15754: PHP creation of Tasks - problem with Title in feed.

Yeah sorry. That exception also occurred to me, before this change: https://we.phorge.it/transactions/detail/PHID-XACT-TASK-tuchgj42nb2ujtc/

Mar 12 2024, 13:46 · Maniphest, Bug Reports
aklapper added a comment to T15754: PHP creation of Tasks - problem with Title in feed.

I could not even reproduce but get an informative error instead:

Mar 12 2024, 13:39 · Maniphest, Bug Reports
tsc updated tsc.
Mar 12 2024, 12:53
aklapper added a comment to D25526: Avoid exception in revision timeline when left diff does not exist.

As Wikimedia uninstalled Differential I cannot further debug in downstream.
We can either decline the ticket and its patch for now (if someone runs into this again, they could reopen or file a new task), or could get the patch in (setting a default value) without a test plan to have more robust code. Shrug.
Opinions? :)

Mar 12 2024, 12:45
aklapper added a comment to T15638: RuntimeException: "Undefined index" when left diff does not exist in DifferentialRevisionTimelineEngine.php.

As Wikimedia uninstalled Differential I cannot further debug in downstream.
We can either decline the ticket and its patch for now (if someone runs into this again, they could reopen or file a new task), or could get the patch in (setting a default value) without a test plan to have more robust code. Shrug.
Opinions? :)

Mar 12 2024, 12:45
valerio.bozzolan updated subscribers of T15061: Create a docker development environment .

Also interesting: https://github.com/phabricator-docker/phabricator by @tsc (Thanks!)

Mar 12 2024, 10:39 · Phorge Development Tools
valerio.bozzolan added a member for Trusted Contributors: tsc.
Mar 12 2024, 10:37
valerio.bozzolan added a comment to T15079: Upstream translatewiki.net's changes.

Since 2023, Wikimedia Phabricator is really Phorge.

Mar 12 2024, 09:52 · Localization
valerio.bozzolan added a comment to D25555: isSelfURI: fix anchors and relative URIs (that are "self" indeed).

I'm not a fan of "if not nonempty". Can I swap?

Mar 12 2024, 08:23
valerio.bozzolan closed T15754: PHP creation of Tasks - problem with Title in feed as Invalid.

Thanks avivey. Added this:

Mar 12 2024, 07:12 · Maniphest, Bug Reports
avivey added a comment to T15754: PHP creation of Tasks - problem with Title in feed.

Look into the "is creation xaction" - we had a similar diff recently about creating Revision from raw diff that had a similar behavior.

Mar 12 2024, 06:49 · Maniphest, Bug Reports
valerio.bozzolan updated the task description for T15754: PHP creation of Tasks - problem with Title in feed.
Mar 12 2024, 06:47 · Maniphest, Bug Reports

Mar 11 2024

valerio.bozzolan changed the visibility for T15754: PHP creation of Tasks - problem with Title in feed.
Mar 11 2024, 18:27 · Maniphest, Bug Reports
valerio.bozzolan renamed T15754: PHP creation of Tasks - problem with Title in feed from ASD to PHP creation of Tasks - problem with Title in feed.
Mar 11 2024, 18:27 · Maniphest, Bug Reports
valerio.bozzolan updated the name of F1796037: Task creation feed normal.png from "image.png" to "Task creation feed normal.png".
Mar 11 2024, 18:25
valerio.bozzolan updated the name of F1795919: Task creation borked.png from "image.png" to "Task creation borked.png".
Mar 11 2024, 18:22
valerio.bozzolan changed the visibility for T15754: PHP creation of Tasks - problem with Title in feed.
Mar 11 2024, 18:14 · Maniphest, Bug Reports
valerio.bozzolan created T15754: PHP creation of Tasks - problem with Title in feed.
Mar 11 2024, 18:14 · Maniphest, Bug Reports
valerio.bozzolan added a comment to T15670: Diffusion repository commits: avoid to be a black hole for webcrawlers.

A root problem is that highlighted line number(s) should be a # fragment really, to do not multiply pages exponentially.

Mar 11 2024, 08:59 · Diffusion, Discussion Needed
valerio.bozzolan added a comment to D25051: Destroy file attachments when file is deleted, or object is deleted.

I'm a little worried about this migration; Do we have garbage collector for this? it would be safer to let it run.

Mar 11 2024, 08:42 · Files
avivey added a comment to D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

Also, maybe combine with the ArcanistXUnitTestResultParser.

Mar 11 2024, 08:24

Mar 10 2024

avivey added a comment to D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

So maybe rename the parser to JUnitTestResult, or something like that (If that's the right name for the format and if phpunit is using the same format)?

Mar 10 2024, 21:00
Sten added a comment to D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

@speck , @valerio.bozzolan
Sorry, yes, it's updating the test engine to parse phpunit's junit output, rather than the json output which no longer exists.

Mar 10 2024, 19:41
valerio.bozzolan added a comment to D25472: Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json..

is ArcanistPhpunitTestResultParser now learning to parse generic "junit style xml" format?

Mar 10 2024, 17:09
valerio.bozzolan requested changes to D25526: Avoid exception in revision timeline when left diff does not exist.

This seems reasonable but better to find a test plan. I also tried, without success :(

Mar 10 2024, 17:07
valerio.bozzolan added a comment to T15638: RuntimeException: "Undefined index" when left diff does not exist in DifferentialRevisionTimelineEngine.php.

I cannot reproduce this. Can you?

Mar 10 2024, 16:59
valerio.bozzolan added a comment to D25428: Fix the issue about persistent chat setting icon being clickable when the chat is collapsed.

Thanks Roberto. If you have not time to follow-up, no problem. We can help to re-patch.

Mar 10 2024, 16:54