Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/main/java/com/iexec/worker/compute/ComputeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,18 @@
return ok().build();
}

@PostMapping(path = {
"/iexec_out/{chainTaskId}/computed", //@Deprecated
"/compute/" + ComputeStage.POST_VALUE + "/{chainTaskId}/computed"
})
/**
* @deprecated Use /compute/post/{chainTaskId}/computed instead
*/
@Deprecated(forRemoval = true)
@PostMapping("/iexec_out/{chainTaskId}/computed")
public ResponseEntity<String> deprecatedSendComputedFileForTee(@RequestHeader("Authorization") String authorization,

Check warning on line 107 in src/main/java/com/iexec/worker/compute/ComputeController.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

See more on https://sonarcloud.io/project/issues?id=com.iexec.worker%3Aiexec-worker&issues=AZsJBC-uI3o_w5E67wpG&open=AZsJBC-uI3o_w5E67wpG&pullRequest=670
@PathVariable("chainTaskId") String chainTaskId,
@RequestBody ComputedFile computedFile) {
return sendComputedFileForTee(authorization, chainTaskId, computedFile);
}

@PostMapping("/compute/" + ComputeStage.POST_VALUE + "/{chainTaskId}/computed")
public ResponseEntity<String> sendComputedFileForTee(@RequestHeader("Authorization") String authorization,
@PathVariable String chainTaskId,
@RequestBody ComputedFile computedFile) {
Expand Down