-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue-14: fixed minor bugs found when testing #15
issue-14: fixed minor bugs found when testing #15
Conversation
onc/+onc/DataProductFile.m
Outdated
@@ -101,31 +99,43 @@ | |||
this.fileSize = strlength(response.Body.Data); | |||
end | |||
%save_as_file doesn't work properly! Use urlwrite instead | |||
[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename)); | |||
%saveResult = util.save_as_file(response, outPath, filename, overwrite); | |||
%[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this commented code
onc/+onc/DataProductFile.m
Outdated
this.status = 777; | ||
end | ||
elseif s == 202 | ||
% Still processing, wait and retry | ||
log.printResponse(jsondecode(response.Body.Data)); | ||
%log.printResponse(response.Body.Data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this commented code
onc/+onc/DataProductFile.m
Outdated
[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename)); | ||
%saveResult = util.save_as_file(response, outPath, filename, overwrite); | ||
%[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename)); | ||
% neither urlwrite nor save_as_file works properly, use websave |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this comment to make it in line with the comment on line 101?
101 says to use urlwrite, then this says not to use urlwrite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I forgot the commented lines
Fixed bugs found when testing with new test suites. Descriptions of each bug is in: #14
Bugs found in OncDelivery will be fixed together later with download issue