Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Keith B.7
9 years agoHelpful | Level 7
Dropbox API Bug: "Restricted Content" Error for Unrestricted Files
Hello,
There seems to be an odd bug in the Dropbox API whereby if you try to download a plain text file containing nothing but a period, you receive a "Restricted Content" error and it refuses to download. One of our customers came across this after she had deleted content from a text file in our writing app but had left the full stop in by mistake.
Reproduction steps:
- I'm using the Objective-C API (API 2).
1. Upload a plain text UTF-8 file containing nothing other than a period (.) character.
2. Using the API, set up a download task:
DBDownloadUrlTask *downloadTask = [self.dropboxClient.filesRoutes downloadUrl:dropboxPathToPlainTextFile overwrite:YES destination:pathToSaveLocally];
[downloadTask setResponseBlock:^(id result, id taskError, DBRequestError *genericError, NSURL *destinationURL){
if (result == nil && genericError != nil)
{
NSLog (@"%@", genericError, nil);
NSLog (@"taskError", nil);
}
}];
Expected result: the file should download without problem - it's not restricted but is just a plain text file containing a period.
Result: "Restricted content" error:
{
".tag" = path;
path = {
".tag" = "restricted_content";
};
}
DropboxHttpError[{
ErrorContent = "path/restricted_content/";
RequestId = c4ac89c1b2bc6ad61c7255c1ef94a287;
StatusCode = 409;
UserMessage = nil;
}];
Thanks!
- Thanks for the report! This should be fixed now.
2 Replies
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks for the report! This should be fixed now. - Keith B.79 years agoHelpful | Level 7
That was fast! I can confirm that it's fixed - many thanks!
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!