Cannot request "Files.GetDirectory" with json-rpc anymore

Hello,

after upgrading to 2016.04-1 i cannot get the file list of a directory. I allowed the access from other machines. When executing
wget “http://localhost/jsonrpc?request={“jsonrpc”:“2.0”,“id”:1,“method”:“Files.GetDirectory”,“params”:{“directory”:“/home/osmc/Video”,“media”:“video”}}”

I simply get the response

{"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

In an older version (dont know which version anymore) it worked without any problems.

The directory /home/osmc/Video exists on the osmc.

Dont know where i have done something wrong, so can anybody help ?

Regards, Rainer

It seems i got it.

When adding /home/osmc/Video as a Video directory, then it works.

I suspect this was a fix to a longstanding security hole in Kodi where the web and json interfaces allowed access to files anywhere on the drive…