Skip to content

Commit 75a5496

Browse files
authored
Fix 202211 (#207)
* update http max parameters (#205) * update download restrictions (#206)
1 parent d7810b3 commit 75a5496

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ RUN rm /root/tcs_informix-ds.xml
3636
## add admin account
3737
RUN /root/wildfly-26.0.1.Final/bin/add-user.sh -u 'admin' -p 'password1!'
3838
RUN sed -i 's/<cached-connection-manager\/>/<cached-connection-manager debug="true" error="false"\/>/' /root/wildfly-26.0.1.Final/standalone/configuration/standalone.xml
39+
RUN sed -i 's/<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"\/>/<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true" max-parameters="5000"\/>/' /root/wildfly-26.0.1.Final/standalone/configuration/standalone.xml
3940

4041
CMD ["/root/wildfly-26.0.1.Final/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0","-DFOREGROUND"]

ECSDockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ RUN rm /root/tcs_informix-ds.xml
3535
## add admin account
3636
RUN /root/wildfly-26.0.1.Final/bin/add-user.sh -u 'admin' -p 'password1!'
3737
RUN sed -i 's/<cached-connection-manager\/>/<cached-connection-manager debug="true" error="false"\/>/' /root/wildfly-26.0.1.Final/standalone/configuration/standalone.xml
38+
RUN sed -i 's/<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"\/>/<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true" max-parameters="5000"\/>/' /root/wildfly-26.0.1.Final/standalone/configuration/standalone.xml
3839

3940
CMD ["/root/wildfly-26.0.1.Final/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0","-DFOREGROUND"]

src/main/java/com/cronos/onlinereview/actions/projectdetails/BaseProjectDetailsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ protected String handleDownloadSubmission(HttpServletRequest request, HttpServle
499499
}
500500

501501
// Allow only submitter to download the submission if it is MM type of challenge
502-
if (project.getProjectCategory().getId() == 37) {
502+
if (project.getProjectCategory().getId() == 37 || project.getProjectCategory().getProjectType().getId() == 3) {
503503
if (!Boolean.parseBoolean((String) project.getProperty("Viewable Submissions Flag"))) {
504504
long submitter = upload.getOwner();
505505
long loggedInUserId = AuthorizationHelper.getLoggedInUserId(request);

0 commit comments

Comments
 (0)