cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Dropbox API Bug: "Restricted Content" Error for Unrestricted Files

Dropbox API Bug: "Restricted Content" Error for Unrestricted Files

Keith B.7
Helpful | Level 7
Go to solution

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!

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Thanks for the report! This should be fixed now.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution
Thanks for the report! This should be fixed now.

Keith B.7
Helpful | Level 7
Go to solution

That was fast! I can confirm that it's fixed - many thanks!

Need more support?