I am trying to use the sharing options provided in the Dropbox java api v2. But everytime I get an error saying "String 'id' does not match pattern" on almost all the functions I tried uptil now in sharing. Following is code snippet :
ListFoldersResult shr_result = client.sharing.listFolders();
ArrayList<SharedFolderMetadata> shr_list = shr_result.entries;
for(SharedFolderMetadata shr_data : shr_list){
System.out.println("Share Folder : "+shr_data.name);
}
I get Exception saying :
Exception in thread "main" java.lang.RuntimeException: String 'id' does not match pattern
at com.dropbox.core.v2.DbxSharing$SharedFolderMetadata.<init>(DbxSharing.java:2486)
at com.dropbox.core.v2.DbxSharing$BasicSharedFolderMetadata.<init>(DbxSharing.java:2640)
I tried debugging it and found :
if (!java.util.regex.Pattern.matches("\\A[-_0-9a-zA-Z]+\\Z", id)) {
throw new RuntimeException("String 'id' does not match pattern");
}
This pattern matching is not accepting unique id created for shared folder . So I request to please help me out in this as this functionality needs to be consumed in my application ASAP.
Thanks