Skip to content

use submission api v5 to download submission #90

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

Closed

Conversation

deedee
Copy link
Contributor

@deedee deedee commented Mar 4, 2020

new token property
@submission_api_endpoint@=http://localhost:3000/api/v5

@deedee deedee force-pushed the download-use-submission-api branch 7 times, most recently from 7ddfcf7 to 994d0c0 Compare March 4, 2020 13:44
@deedee deedee force-pushed the download-use-submission-api branch from 994d0c0 to a9322fe Compare March 4, 2020 13:47
@deedee deedee closed this Mar 8, 2020
@callmekatootie
Copy link

@deedee Was this closed intentionally? Is there an alternative PR?

@deedee
Copy link
Contributor Author

deedee commented Mar 15, 2020

@callmekatootie I thought this task was cancel. Do you want me to reopen this?

@callmekatootie
Copy link

@deedee Checking... they asked me to review this but I see now that its closed 😄

Will let you know

@callmekatootie
Copy link

Hey @deedee - there's been a misunderstanding. This task is very much active. Could you kindly reopen this and let me know if it is ready to be reviewed?

@deedee deedee reopened this Mar 20, 2020
@deedee
Copy link
Contributor Author

deedee commented Mar 20, 2020

@callmekatootie Yes it's ready for review

@callmekatootie
Copy link

@deedee Could you kindly make the changes requested by @skyhit and let me know once that is ready for review?

@deedee
Copy link
Contributor Author

deedee commented Mar 21, 2020

@callmekatootie change done on new commit.

@callmekatootie
Copy link

@skyhit Are the updates fine?

}

} catch(Exception e) {
throw new BaseException(e.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee should include the root cause.


servletResponse.flushBuffer();

OutputStream out = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee this is some logic to pipe input stream to output stream, I think it is better code it as a separate method for clearness.

servletResponse.setHeader("Content-Type", response.getEntity().getContentType().getValue());
servletResponse.setStatus(HttpServletResponse.SC_OK);
servletResponse.setIntHeader("Content-Length", (int) response.getEntity().getContentLength());
servletResponse.setHeader("Content-Disposition", response.getHeaders("Content-Disposition")[0].getValue());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee what if there is no Content-Disposition, then there will be index out of boundary issue.

@skyhit
Copy link
Contributor

skyhit commented Mar 21, 2020

@deedee sorry, foget to submit some new comments, please check again

@callmekatootie
Copy link

@deedee Sorry about that - could you kindly check out @skyhit 's review one more time and carry out the changes as needed.

Also - can you let ping me on slack on the same handle as my github...

@deedee
Copy link
Contributor Author

deedee commented Mar 22, 2020

@callmekatootie @skyhit new change has been pushed

@skyhit
Copy link
Contributor

skyhit commented Mar 22, 2020

@deedee @callmekatootie from code review, looks good to me.

@callmekatootie
Copy link

Ticket #89

@callmekatootie
Copy link

Current Status:

  • Code review completed.
  • However, due to steep deployment process, could not deploy and verify.
  • Suggestion is to merge the PR and test directly on topcoder's dev instance. Awaiting approval.

@eisbilir eisbilir closed this Sep 20, 2023
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.

4 participants