Page MenuHomePhabricator

Subscriber "Unknown Object (MLST)" can't be removed: "Edges are not available for objects of type 'MLST'!"
Closed, ResolvedPublic


Task T47839 (maybe others too) has a "Unknown Object (MLST)" in the CC field, and it can't be removed: attempting results in "Unhandled Exception ("Exception"): Edges are not available for objects of type 'MLST'!"

Event Timeline

matmarex created this task.Dec 30 2015, 9:35 PM
matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)
matmarex added a project: Phabricator.
matmarex added a subscriber: matmarex.
Restricted Application added subscribers: StudiesWorld, Luke081515, scfc, Aklapper. · View Herald TranscriptDec 30 2015, 9:35 PM
Aklapper triaged this task as Low priority.Dec 30 2015, 9:38 PM

Interesting. Confirming. Probably some old / disabled / not properly imported (?) mailing list.

(To report upstream, we need to reproduce it)

(Is there a column for this? I think "Needs discussion" is not the right one)

"Stalled" status if you really felt some need to express that? However I can reproduce this, hence not sure why this is asked. :)

Luke081515 moved this task from To Triage to Misc on the Phabricator board.Jan 21 2016, 9:50 PM
Aklapper renamed this task from Task with subscriber: "Unknown Object (MLST)" that can't be removed to Subscriber "Unknown Object (MLST)" can't be removed: "Edges are not available for objects of type 'MLST'!".Apr 27 2016, 10:50 AM
Aklapper lowered the priority of this task from Low to Lowest.
Aklapper set Security to None.
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptApr 27 2016, 10:50 AM

I can reproduce this too.

"ccPHIDs": [

Ah. If you compare @wikibugs-l-list to @Wikidata-bugs, note that the former was created Jun 11 2015, 3:52 AM (45 w, 6 d) and has role Mailing List, whereas the latter was created Nov 25 2014, 12:55 PM (74 w, 23 h) and is linked to a MediaWiki account. I suspect the account existed before the MLST->USER conversion, and the conversion broke because of that.

Aklapper added a comment.EditedApr 27 2016, 11:19 AM

Likely a side effect (bug) of when mailinglists (MLST) got converted into users. The entity PHID-MLST-fswpxohkpbignkopdasf does not exist anymore (was likely the wikidata-bugs mailing list) in our Phab instance but it looks like the corresponding edges were not removed correctly.

To query the IDs of all affected tasks where this element is in the subscribers field (untested!):
SELECT FROM phabricator_maniphest.edge edg JOIN phabricator_maniphest.maniphest_task t WHERE edg.type = 21 AND edg.dst = "PHID-MLST-fswpxohkpbignkopdasf" AND t.phid = edg.src;

Edit: Mid-air collision with Valhallasw when I wrote this comment. :)

Krinkle added a subscriber: Krinkle.Jul 3 2018, 2:02 AM

This bug seems to make it impossible to change subscribers of T73461, or to mark it as a duplicate. When I did, it failed half-way through, showing the duplication status on T73461, but not on the target (T184854), with the same error:

Edges are not available for objects of type 'MLST'

I can consistently reproduce the error by trying to remove "Unknown Object (MLST)" from

Aklapper raised the priority of this task from Lowest to Low.Jul 3 2018, 9:40 AM

Someone with Phab DB access please

  • replace the broken list value with the existing account : use phabricator_maniphest; UPDATE edge SET dst="PHID-USER-zcgjmgl4fagouajd6iym" WHERE dst="PHID-MLST-fswpxohkpbignkopdasf" AND src LIKE "PHID-TASK-%";
  • or delete these edges: use phabricator_maniphest; DELETE FROM edge WHERE dst="PHID-MLST-fswpxohkpbignkopdasf" AND src LIKE "PHID-TASK-%";

This problem is likely a result of us not following in 2015.

@mmodell: Do you think that updating the DB as proposed in my previous comment would be worth a shot, or do you consider that too risky? If worth, who could do that?

mmodell claimed this task.May 28 2019, 2:21 PM

@Aklapper: seems like a sane solution to me, I'll give it a shot.

Updating edges didn't work due to duplicate key errors. Should I just delete the edges?

MariaDB [phabricator_maniphest]> select count(*) from edge where dst LIKE "PHID-MLST-%";

| count(*) |
|     2701 |
1 row in set (0.03 sec)

MariaDB [phabricator_maniphest]> select count(*) from edge where src LIKE "PHID-MLST-%";
| count(*) |
|    49795 |
1 row in set (0.14 sec)

ok I deleted the destination edges, that should hopefully resolve this specific issue?

matmarex closed this task as Resolved.May 28 2019, 4:49 PM

Seems fine, thanks!