#16 - Fix indexing ' array of object' for all CSPs
3 unresolved threads
3 unresolved threads
Array of objects feature was implemented as a part of !114 (merged) but enabled only for GCP. This MR fix this and enable this mapping by default for other CSPs as well.
Merge request reports
Activity
added Common Code M4 labels
added 1 commit
added 4 commits
-
e0e84f13...e145394e - 3 commits from branch
master
- 5824b1ae - Merge branch 'master' into hotfix/#16-array-of-objects
-
e0e84f13...e145394e - 3 commits from branch
added 1 commit
- ae7f09d5 - resolve unwanted cloud tasks retry by fixing exception handler
requested review from @Dmitriy_Rudko, @ethiraj, @jsangiamo, @wsmatth, and @jingdongsun
mentioned in commit feb78aa0
28 30 } else { 29 31 log.warn(exceptionMsg, e.getOriginalException()); 30 32 } 31 33 32 return new ResponseEntity<>(e.getError(), HttpStatus.resolve(e.getError().getCode())); 34 HttpStatus status = Objects.nonNull(HttpStatus.resolve(errorCode)) 35 ? HttpStatus.resolve(errorCode) 36 : resolveNotSupportedStatus(errorCode); 37 38 return new ResponseEntity<>(e.getError(), status); 39 } 40 41 //Currently not all codes provided from core can be resolved by HttpStatus 42 //example org.opengroup.osdu.core.common.model.http.RequestStatus have not supported by HttpStatus codes 43 private HttpStatus resolveNotSupportedStatus(int statusCode) { 44 if (statusCode > 99 && statusCode < 200) { @Dmitriy_Rudko Changes for the fix looks good. But cant comprehend why the status code changes have been done.
picked the changes into the branch
cherry-pick-feb78aa0
with commit 16c934e0mentioned in commit 16c934e0
mentioned in merge request !125 (merged)
28 30 } else { 29 31 log.warn(exceptionMsg, e.getOriginalException()); 30 32 } 31 33 32 return new ResponseEntity<>(e.getError(), HttpStatus.resolve(e.getError().getCode())); 34 HttpStatus status = Objects.nonNull(HttpStatus.resolve(errorCode)) 35 ? HttpStatus.resolve(errorCode) 36 : resolveNotSupportedStatus(errorCode); 37 38 return new ResponseEntity<>(e.getError(), status); 39 } 40 41 //Currently not all codes provided from core can be resolved by HttpStatus 42 //example org.opengroup.osdu.core.common.model.http.RequestStatus have not supported by HttpStatus codes 43 private HttpStatus resolveNotSupportedStatus(int statusCode) { 44 if (statusCode > 99 && statusCode < 200) { added MRBugfix label
changed milestone to %M5 - Release 0.8
Please register or sign in to reply