Skip to content

Commit

Permalink
Sonar analysis in biosdk fixed in develop
Browse files Browse the repository at this point in the history
Signed-off-by: Jaya Sai Krishna <138590923+JayaSaiKrishna11@users.noreply.github.com>
  • Loading branch information
JayaSaiKrishna11 committed Feb 14, 2024
1 parent 038efdb commit 0d84bb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity security) throws Exception
{
security.httpBasic().disable();
security.csrf().disable();
//security.csrf().disable();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public Object init(RequestDto request){
try {
sdkInfo = iBioApi.init(initRequestDto.getInitParams());
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"init: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.getMessage());
}
Expand All @@ -74,7 +73,6 @@ public Object checkQuality(RequestDto request) {
checkQualityRequestDto.getFlags()
);
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"checkQuality: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand All @@ -96,7 +94,6 @@ public Object match(RequestDto request) {
matchRequestDto.getFlags()
);
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"match: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand All @@ -117,7 +114,6 @@ public Object extractTemplate(RequestDto request) {
extractTemplateRequestDto.getFlags()
);
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"extractTemplate: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand All @@ -138,7 +134,6 @@ public Object segment(RequestDto request) {
segmentRequestDto.getFlags()
);
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"segment: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand All @@ -162,7 +157,6 @@ public Object convertFormat(RequestDto request) {
convertFormatRequestDto.getModalitiesToConvert()
);
} catch (Throwable e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,"convertFormat: ", e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.BIOSDK_LIB_EXCEPTION.toString(), ErrorMessages.BIOSDK_LIB_EXCEPTION.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand All @@ -173,7 +167,6 @@ private String decode(String data){
try {
return Utils.base64Decode(data);
} catch (RuntimeException e){
e.printStackTrace();
logger.error(LOGGER_SESSIONID, LOGGER_IDTYPE,ErrorMessages.INVALID_REQUEST_BODY.toString(), e.toString()+" "+e.getMessage());
throw new BioSDKException(ErrorMessages.INVALID_REQUEST_BODY.toString(), ErrorMessages.INVALID_REQUEST_BODY.getMessage()+": "+e.toString()+" "+e.getMessage());
}
Expand Down

0 comments on commit 0d84bb3

Please sign in to comment.