Skip to content

MedialibraryFolders: banning an smb folder won't work

Description

Banning an directory from a medialibrary smb entry point doesn't work. The issue is that in banFolder / unbanFolder in MedialibraryImpl.java, it checks for the existence of the directory using a path without protocol, meaning that the directory won't exist.

Steps to reproduce

  1. Add an smb share to the medialibrary folders
  2. Once selected, ban one of it's children, it will fail

Screenshot / video

device-2022-10-05-103256

Context

App version

master

Android version

any

Device model

any

App mode

Smartphone

TV

Auto