Local user renamed and inconsistently treated as remote following bio update
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.1.1 when bug occurred, upgraded to 2.2.0 in remediation attempts
- Elixir version (
elixir -v
for from source installations, N/A for OTP): N/A - Operating system: Debian 10.5
- PostgreSQL version (
psql -V
): psql (PostgreSQL) 11.7 (Debian 11.7-0+deb10u1)
Bug description
Under 2.1.1 I performed a simple bio update on the local Pleroma account trysdyn@marf.space
via PleromaFE -- After the bio update, my user was renamed from trysdyn
to trysdyn@marf.space
and the frontend began treating my profile as a remote profile for the purposes of disclosure of profile data. Additional profile URLs began responding in an inconsistent manner:
-
/trysdyn
returns a full pleromaFE chromed page with "Can't Find User" in the content pane -
/users/trysdyn
returns JSON{"error": "Not found"}
-
/trysdyn@marf.space
returns my profile as intended in full only when authenticated, otherwise "Can't find user" -
/users/trysdyn@marf.space
returns an ISE with the JSON block{"errors":{"detail":"Internal server error"}}
-
/users/trysdyn/inbox
returns a 500 with no additional info in logs -
/users/<my FlakeID>
returns profile as intended in full
The ISE indicated above associated with this log message:
Dec 02 02:30:09 li774-227 pleroma[4064]: 02:30:09.120 [info] GET /users/trysdyn@marf.space/
Dec 02 02:30:09 li774-227 pleroma[4064]: 02:30:09.122 request_id=FkzFZgq3WrOz3G4AAhFR [error] Internal server error: %Phoenix.NotAcceptableError{accepts: ["html", "xml", "rss", "atom", "activity+json", "json"], message: "unknown format \"space\", expected one of [\"html\", \"xml\", \"rss\", \"atom\", \"activity+json\", \"json\"]", plug_status: 406}
Admin panel still notes my account as a Local account, though there too it's been renamed to include the domain. Same as the DB:
pleroma=# select name,nickname,local from users where name LIKE 'Trys%';
name | nickname | local
-------------------------+---------------------+--------
Trysdyn, Jolteon Aspect | trysdyn@marf.space | t
Looks like the append of the domain to my nickname is the cause? I'm fairly certain that's not supposed to occur for local profiles.
So a few items here:
- The rename seems to be a bug; if so that's the main onus of this issue
- Can I just rename this back to
trysdyn
and things not horribly explode in a ball of fire? - If yes to 2, I'll up my logging verbosity and try to catch this happening again for more info