Page MenuHomePhorge
Feed All Stories

Mar 21 2024

aklapper added a comment to T15762: PhabricatorDataNotAttachedException when rendering project hovercard with username mentioned in project description.

Also note that we have a similar PhabricatorDataNotAttachedException in PhabricatorRepositoryCommit (via getRepository()) in downstream https://phabricator.wikimedia.org/T360714. It's without reproduction steps but sounds a bit similar.

Mar 21 2024, 20:40 · Affects-Wikimedia, Bug Reports
aklapper updated the task description for T15762: PhabricatorDataNotAttachedException when rendering project hovercard with username mentioned in project description.
Mar 21 2024, 20:21 · Affects-Wikimedia, Bug Reports
aklapper created T15762: PhabricatorDataNotAttachedException when rendering project hovercard with username mentioned in project description.
Mar 21 2024, 20:19 · Affects-Wikimedia, Bug Reports
aklapper closed T15631: "Map returned omits required key" exception for second result page (cursor) for Maniphest search ordered by custom field as Resolved by committing rPd42b3eb0b17a: Fix "Map omits required key" exception by comparing result order against modern….
Mar 21 2024, 18:26 · Affects-Wikimedia, Bug Reports
aklapper closed D25504: Fix "Map omits required key" exception by comparing result order against modern field keys.
Mar 21 2024, 18:26
aklapper committed rPd42b3eb0b17a: Fix "Map omits required key" exception by comparing result order against modern….
Fix "Map omits required key" exception by comparing result order against modern…
Mar 21 2024, 18:25
aklapper requested review of D25556: Fix PHP 8.1 "strlen(null)" exception querying project tags for autocomplete without additional hashtag slugs defined.
Mar 21 2024, 17:36
aklapper added a revision to T15761: PHP 8.1 "strlen(null)" exception entering autocomplete project tag in task comment: D25556: Fix PHP 8.1 "strlen(null)" exception querying project tags for autocomplete without additional hashtag slugs defined.
Mar 21 2024, 17:36 · PHP 8 support
aklapper created T15761: PHP 8.1 "strlen(null)" exception entering autocomplete project tag in task comment.
Mar 21 2024, 17:30 · PHP 8 support
valerio.bozzolan updated the diff for D25118: Remarkup: make less internal links open in new tabs.
In D25118#14541, @speck wrote:

I forgot I had this requesting changes. Any idea of the performance hit in markup rendering now that PhutilURI is constructed for every link? I think its constructor does a fair amount.

Mar 21 2024, 14:45
valerio.bozzolan changed the visibility for F2013380: D25118-boz-performance-results.png.
Mar 21 2024, 14:32
valerio.bozzolan changed the visibility for F2012609: D25118-boz-performance-results.png.
Mar 21 2024, 11:52

Mar 20 2024

avivey moved T15525: Create repository for Diagrams, a DrawIO integration from Backlog to Pending Projects on the Phactory: Community Projects board.
Mar 20 2024, 12:08 · Phactory: Community Projects
avivey moved T15558: community repo: Semi Structured from Backlog to Pending Projects on the Phactory: Community Projects board.
Mar 20 2024, 12:08 · Semi Structured (Extension), Phactory: Community Projects
avivey moved T15576: Community Repo: QR Code Extension from Backlog to Pending Projects on the Phactory: Community Projects board.
Mar 20 2024, 12:08 · Phactory: Community Projects
avivey claimed T15030: Support a Phorge Extensions ecosystem.

@avivey to do now:

Mar 20 2024, 08:05 · Extension Development, Phactory: Community Projects, Phorge
avivey moved T15567: Phorge extension to print QR stickers from Backlog to Pending Projects on the Phactory: Community Projects board.
Mar 20 2024, 08:03 · Phactory: Community Projects
avivey moved T15760: Community Repo: DeepClone from Backlog to Pending Projects on the Phactory: Community Projects board.
Mar 20 2024, 08:03 · Phactory: Community Projects
avivey added a comment to T15760: Community Repo: DeepClone.

The repo is set to "host" right now, but it can also be set to "observe from" or "mirror to" another repo.

Mar 20 2024, 08:01 · Phactory: Community Projects
avivey changed the edit policy for DeepClone (Extension).
Mar 20 2024, 07:56
avivey added a member for DeepClone (Extension): tsc.
Mar 20 2024, 07:54
avivey created DeepClone (Extension).
Mar 20 2024, 07:54
tsc created T15760: Community Repo: DeepClone.
Mar 20 2024, 07:50 · Phactory: Community Projects

Mar 19 2024

Sten added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

Sorry, I'm not explaining it very well. For the database engine to use index (col1, col2, col3), col1 must be specified somewhere in the WHERE clause, but it's precise location is irrelevant - the database engine will work it out. As to why we need both indexes, there's a good explanation on https://use-the-index-luke.com/sql/where-clause/the-equals-operator/concatenated-keys

Mar 19 2024, 22:35
avivey added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

Interesting, and a little troubling if I understand it correctly; It means that the query ... WHERE dst = $a and type = $b and src = $c will be a full-table-read, but the equivalent query src = $c and type = $b and dst = $a will use the index to resolve quickly?

Mar 19 2024, 22:17
valerio.bozzolan updated the diff for D25118: Remarkup: make less internal links open in new tabs.

minor optimization and unit tests are still happy

Mar 19 2024, 16:43
valerio.bozzolan updated the task description for T15161: Internal resources should avoid to become external links, as default.
Mar 19 2024, 16:41 · User-valerio.bozzolan, Discussion Needed, Remarkup
valerio.bozzolan closed T15182: Simplify the way "internal links" are identified, a subtask of T15161: Internal resources should avoid to become external links, as default, as Resolved.
Mar 19 2024, 16:34 · User-valerio.bozzolan, Discussion Needed, Remarkup
valerio.bozzolan closed T15182: Simplify the way "internal links" are identified as Resolved by committing rP328aee033fbd: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
Mar 19 2024, 16:34 · User-valerio.bozzolan, Remarkup
valerio.bozzolan closed D25555: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
Mar 19 2024, 16:34
valerio.bozzolan committed rP328aee033fbd: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
isSelfURI: fix anchors and relative URIs (that are "self" indeed)
Mar 19 2024, 16:34
Sten added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

@avivey - the order of the keys is irrelevant when it comes to determining uniqueness, but extremely important in other respects. In order for an index to be used when selecting rows, the database must be provided with values for the index fields, in the order specified. Ie you always need to specify a value for the first field, and can get away without successive ones.

Mar 19 2024, 13:50
avivey accepted D25555: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
Mar 19 2024, 11:27
avivey added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

Are the keys actually different? Looks like they have the same fields in different order. Does this makes a difference in the implementation?

Mar 19 2024, 09:02

Mar 18 2024

Sten added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

@valerio.bozzolan agreed - I'm not proposing to remove the (dst, type, src) index, just the uniqueness constraint on that index. Sorry for not making that clear.

Mar 18 2024, 11:19
valerio.bozzolan added a comment to T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.

But in any case, it may have sense to keep a generic index on (dst, type, src) (or maybe just dst, type) in that specific order, since the UNIQUE KEY was probably a "micro-optimization" to achieve such index for queries operating on dst, or also dst and type, but all without src. This is just an opinion from an alien. Better to wait for more answers.

Mar 18 2024, 11:09
Sten created T15759: MySQL edge table error log: 'INSERT... ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe'.
Mar 18 2024, 10:49
valerio.bozzolan edited the content of Next Up.
Mar 18 2024, 07:19
valerio.bozzolan edited the content of Next Up.
Mar 18 2024, 07:19

Mar 17 2024

valerio.bozzolan added a comment to T15121: Contributor Agreement.

Your email address(es) set by you for your user account in the Phorge Project

That is private data. Nobody can access it.

Mar 17 2024, 18:24 · Phorge
avivey updated the task description for T15758: Monitor PHPMailer security.
Mar 17 2024, 08:56 · Security

Mar 16 2024

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

I'm pretty sure getValueForQuery() should return some value?

Mar 16 2024, 14:13
avivey added a comment to T15121: Contributor Agreement.

I have a problem with this statement:

Mar 16 2024, 08:12 · Phorge
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