ContentItem move method fails to use QFile::rename
https://gitlab.com/ubports/core/content-hub/-/blob/ubports/xenial/import/Ubuntu/Content/contentitem.cpp#L229 return false.
After some investigation, the failure comes when "rename" fails when removing the source file. An apparmor issue is visible around that time:
Sep 3 15:17:08 ubuntu-phablet kernel: [ 177.845308]type=1400 audit(1630675028.330:218): apparmor="DENIED" operation="link" profile="com.ubuntu.music_music_2.9.23" name="/home/phablet/Music/Imported/2021/09/03/094451-pikatchu.wav" pid=5310 comm="qmlscene" requested_mask="wacd" denied_mask="wacd" fsuid=32011 ouid=32011 target="/home/phablet/.cache/com.ubuntu.music/HubIncoming/2/094451-pikatchu.wav"
The cause is with that rule: apparmor-easyprof-ubuntu/data/policygroups/ubuntu/16.04/content_exchange
deny @{HOME}/.cache/@{APP_PKGNAME}/HubIncoming/** w,
So every apps that use the move method will have a copy fired 2 times And the HubIncoming/* not cleared
More over the copy method used as a fallback does not trigger the correct event in Mediascanner. Making the Music app unable to recognize the file