Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@ grievancePassword = @env.GRIEVANCE_PASSWORD@
grievanceUserAuthenticate = @env.GRIEVANCE_USER_AUTHENTICATE@
grievanceDataSyncDuration = @env.GRIEVANCE_DATA_SYNC_DURATION@

springdoc.api-docs.enabled=false
springdoc.swagger-ui.enabled=false
3 changes: 3 additions & 0 deletions src/main/environment/common_dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = <Enter Grievience Data Sync Duration>

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
3 changes: 3 additions & 0 deletions src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ grievancePassword = <Enter Grievance password>
grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = <Enter Grievience Data Sync Duration>

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true

3 changes: 3 additions & 0 deletions src/main/environment/common_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,6 @@ grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = <Enter Grievience Data Sync Duration>

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
3 changes: 3 additions & 0 deletions src/main/environment/common_uat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,6 @@ grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = <Enter Grievience Data Sync Duration>

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ public String userAuthenticate(
JSONObject serviceRoleMap = new JSONObject();
JSONArray serviceRoleList = new JSONArray();
JSONObject previlegeObj = new JSONObject();
if (m_User.getUserName() != null && (m_User.getDoLogout() == null || m_User.getDoLogout() == false)
&& (m_User.getWithCredentials() != null || m_User.getWithCredentials() == true)) {
if (m_User.getUserName() != null
&& (m_User.getDoLogout() == null || !m_User.getDoLogout())
&& (m_User.getWithCredentials() != null && m_User.getWithCredentials())) {
Comment on lines +155 to +157
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fixed critical logical error in WithCredentials check.

The original condition m_User.getWithCredentials() != null || m_User.getWithCredentials() == true had a logical error that would evaluate to true when WithCredentials is null. The new condition correctly requires both non-null and true value.

String tokenFromRedis = getConcurrentCheckSessionObjectAgainstUser(
m_User.getUserName().trim().toLowerCase());
if (tokenFromRedis != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,15 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
case "userLogout":
case "swagger-ui.html":
case "index.html":
case "index.css":
case "swagger-initializer.js":
case "swagger-config":
case "swagger-ui-bundle.js":
case "swagger-ui.css":
case "ui":
case "swagger-ui-standalone-preset.js":
case "favicon-32x32.png":
case "favicon-16x16.png":
case "swagger-resources":
case "api-docs":
case "updateBenCallIdsInPhoneBlock":
Expand Down
Loading