Skip to content

Use SystemAccessUtils.fileExists in loadIfExists - #1758

Merged
jasonkatonica merged 1 commit into
IBM:mainfrom
jasonkatonica:katonica/issue1284/fixforifexistssecmanmain
Sep 10, 2026
Merged

Use SystemAccessUtils.fileExists in loadIfExists#1758
jasonkatonica merged 1 commit into
IBM:mainfrom
jasonkatonica:katonica/issue1284/fixforifexistssecmanmain

Conversation

@jasonkatonica

Copy link
Copy Markdown
Member

Replace direct libraryFile.exists() call in loadIfExists with SystemAccessUtils.fileExists(libraryName) to ensure file existence checks are routed through the security manager aware utility method, consistent with the rest of the privileged-access pattern used in the native library loading path.

Signed-off-by: Jason Katonica <katonica@us.ibm.com

Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Signed-off-by: Jason Katonica <katonica@us.ibm.com>

@taoliult taoliult left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jasonkatonica
jasonkatonica merged commit e0e1440 into IBM:main Sep 10, 2026
3 checks passed
@jasonkatonica
jasonkatonica deleted the katonica/issue1284/fixforifexistssecmanmain branch September 10, 2026 12:25
jasonkatonica added a commit that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: #1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: #1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: #1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: #1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: #1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: IBM#1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: IBM#1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: IBM#1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: IBM#1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica added a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 10, 2026
Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Back-ported from: IBM#1758

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants