You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add a folder through the rest api with root folder (id=0) as a parent and it fails with error message
{"err":"No destination folder provided"}.
Arguments validation fails on string ("TestFolder;60;0;0;0") unexpectedly fails when 2nd parameter "parent folder id" is 0,
because PHP method Empty returns false when the parameter is "0".
(similar to #1796 but in parent folder)
on file:
Teampass/api/functions.php
1030. if (--> empty($params[2]) <--) {
1031. rest_error('NO_DESTINATION_FOLDER');
1032. }
The text was updated successfully, but these errors were encountered:
Hi we have a 2.1.27.12 version of Teampass.
I am trying to add a folder through the rest api with root folder (id=0) as a parent and it fails with error message
{"err":"No destination folder provided"}.
*Steps to reproduce
Invoke add folder api like:
https://teampass.pt/api/index.php/add/folder/TestFolder;60;0;0;0?apikey=mykeyhereeeEEe
*Expected behaviour
Folder should be created with success message.
*Actual behaviour
Folder creation fails with message:
{"err":"No destination folder provided"}.
Problem:
Arguments validation fails on string ("TestFolder;60;0;0;0") unexpectedly fails when 2nd parameter "parent folder id" is 0,
because PHP method Empty returns false when the parameter is "0".
(similar to #1796 but in parent folder)
on file:
Teampass/api/functions.php
1030. if (--> empty($params[2]) <--) {
1031. rest_error('NO_DESTINATION_FOLDER');
1032. }
The text was updated successfully, but these errors were encountered: