| Summary: | File name containing certain characters is displayed incorrectly | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Patrick Silva <bugseforuns> |
| Component: | Media Player widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | 4wy78uwh, diroqu, kde, kdedev, nate |
| Priority: | NOR | Keywords: | junior-jobs |
| Version First Reported In: | 6.4.80 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/6a0aac5becb8369f3e674f4d1ca0715f16964f89 | Version Fixed/Implemented In: | 6.4.6 |
| Sentry Crash Report: | |||
| Attachments: | screen recording | ||
Created attachment 183550 [details]
screen recording
I can reproduce this on git-master with similarly named webm videos when played on VLC Can confirm that VLC produces this behavior. Anyway, other players seem to work fine. Played .mp4 files with these names with Firefox and the names are displayed correct. I think it's not problem with the widget. VLC sends this directly as meta-data over the dbus (see below).
One could implement that the strings with URLEncoding are decoded properly, but it isn't necessarily a bug.
dict entry(
string "Metadata"
variant array [
dict entry(
string "mpris:trackid"
variant object path "/org/videolan/vlc/playlist/3"
)
dict entry(
string "xesam:url"
variant string "file:///home/andreas/Music/audio%28123%29.mp4"
)
dict entry(
string "vlc:time"
variant uint32 3696
)
dict entry(
string "mpris:length"
variant int64 3696082721
)
dict entry(
string "vlc:length"
variant int64 3696082
)
dict entry(
string "vlc:publisher"
variant int32 5
)
]
)
Setting this back to confirmed Git commit 20c37ef4cc3678755dde57c131d1a6cfeb44d370 by Fushan Wen, on behalf of Conor Smith. Committed on 03/10/2025 at 01:45. Pushed by fusionfuture into branch 'master'. libkmpris: Decodes URI before displaying title When a track provided by the MRPIS DBUS interface does not have a title or album, the value at xesam:url will be used instead. Particularly for files, this causes problems if said URL has URI encoded characters. FIXED-IN: 6.5.0 M +2 -2 libkmpris/playercontainer.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/20c37ef4cc3678755dde57c131d1a6cfeb44d370 Git commit 46cb8ce861062b70bf95285a0ea8bb3f0d00fb60 by Fushan Wen. Committed on 03/10/2025 at 01:45. Pushed by fusionfuture into branch 'Plasma/6.5'. libkmpris: Decodes URI before displaying title When a track provided by the MRPIS DBUS interface does not have a title or album, the value at xesam:url will be used instead. Particularly for files, this causes problems if said URL has URI encoded characters. FIXED-IN: 6.5.0 (cherry picked from commit 20c37ef4cc3678755dde57c131d1a6cfeb44d370) c6e4aa77 libkmpris: Decodes URI before displaying title Co-authored-by: Conor Smith <conormartindale@gmail.com> M +2 -2 libkmpris/playercontainer.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/46cb8ce861062b70bf95285a0ea8bb3f0d00fb60 Git commit 6a0aac5becb8369f3e674f4d1ca0715f16964f89 by Fushan Wen. Committed on 03/10/2025 at 01:48. Pushed by fusionfuture into branch 'Plasma/6.4'. libkmpris: Decodes URI before displaying title When a track provided by the MRPIS DBUS interface does not have a title or album, the value at xesam:url will be used instead. Particularly for files, this causes problems if said URL has URI encoded characters. FIXED-IN: 6.5.0 (cherry picked from commit 20c37ef4cc3678755dde57c131d1a6cfeb44d370) c6e4aa77 libkmpris: Decodes URI before displaying title Co-authored-by: Conor Smith <conormartindale@gmail.com> (cherry picked from commit 46cb8ce861062b70bf95285a0ea8bb3f0d00fb60) Co-authored-by: Fushan Wen <qydwhotmail@gmail.com> M +2 -2 libkmpris/playercontainer.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/6a0aac5becb8369f3e674f4d1ca0715f16964f89 |
STEPS TO REPRODUCE 1. have a video with any name below: video (123).mp4 video [123].mp4 video {123}.mp4 2. play the video with a player usable with Media Player widget 3. click on the Media Player widget and observe the displayed file name OBSERVED RESULT the widget displays the file name incorrectly. Please watch the attached screen recording. EXPECTED RESULT correct file name SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 6.4.80 Qt Version: 6.9.1 Kernel Version: 6.15.7-061507-generic (64-bit) Graphics Platform: Wayland