Skip to content

Conversation

wangmengyan95
Copy link
Contributor

Fix a bug in ParseAWSRequest, if users never download/upload any ParseFile, the cache dir does not exist. In this situation, if users download a ParseFile, in ParseAWSRequset, new FileOutputStream(tempFile) will throw an exception since parent dir does not exist. By using ParseFileUtils, we create parent dir if it does not exist which fixes this problem.

@grantland
Copy link
Contributor

Wouldn't it be better to just update the previous tests to use a non-existant folder?

@grantland
Copy link
Contributor

LGTM

@grantland grantland assigned wangmengyan95 and unassigned grantland Sep 12, 2015
@grantland grantland modified the milestones: 1.10.2, 1.10.3 Sep 12, 2015
@grantland
Copy link
Contributor

Looks like there are merge conflicts, so you'll need to rebase and squash before merging.

@wangmengyan95 wangmengyan95 force-pushed the wangmengyan.t8184922_ParseAWSRequest_tempFile_creation branch from 21bbd1d to 441aab8 Compare September 14, 2015 23:03
wangmengyan95 added a commit that referenced this pull request Sep 14, 2015
…AWSRequest_tempFile_creation

Create cache dir if it does not exist before we use tempFile
@wangmengyan95 wangmengyan95 merged commit 2c1147c into master Sep 14, 2015
@wangmengyan95 wangmengyan95 deleted the wangmengyan.t8184922_ParseAWSRequest_tempFile_creation branch September 14, 2015 23:20
@facebook-github-bot
Copy link

@wangmengyan95 updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants