Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Vartika A.
10 years agoNew member | Level 1
Problem while using Sharing functions in dropbox java api v2
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
3 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the report! We're looking into it.
- Vartika A.10 years agoNew member | Level 1
Thanks Gregory. Hoping to see an update soon. Please revert if this issue gets fixed.
- Greg-DB10 years ago
Dropbox Community Moderator
This should be fixed now. Please let us know if you're still having any trouble.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!