Scott Marlow (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNThlN2FkMTlj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15514?atlOrigin=eyJpIjoiNThlN2...
) HHH-15514 (
https://hibernate.atlassian.net/browse/HHH-15514?atlOrigin=eyJpIjoiNThlN2...
) EntityTestCase Test failures with Hibernate ORM when run under security manager (
https://hibernate.atlassian.net/browse/HHH-15514?atlOrigin=eyJpIjoiNThlN2...
)
Issue Type: Bug Affects Versions: 6.1.3 Assignee: Unassigned Components: hibernate-core
Created: 15/Sep/2022 10:42 AM Priority: Major Reporter: Scott Marlow (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The
https://hibernate.atlassian.net/browse/HHH-15371 (
https://hibernate.atlassian.net/browse/HHH-15371 ) change addressed Hibernate ORM Envers
test failures when run under a Java Security Manager but two of the tests not addressed by
that change can be seen when running with Hibernate ORM 6.1.3
To recreate:
*************************************************************
Steps to use Scott's branch to reproduce wildfly test failure
*************************************************************
git clone
https://github.com/scottmarlow/wildfly (
https://github.com/scottmarlow/wildfly
)
cd wildfly
git checkout WFLY-16713_Hibernate_ORM6.1.3
./build.sh clean install -DskipTests=true
pushd wildfly/testsuite/integration/basic
mvn clean test -Dtest=SessionFactoryTestCase -Dsecurity.manager
mvn clean test -Dtest=EntityTestCase -Dsecurity.manager
popd
************************************
Recreate the failure with a debugger
************************************
***************************************
start wildfly with remote debug enabled
***************************************
pushd dist/target/wildfly-27.0.0.Beta1-SNAPSHOT/bin
vim standalone.conf
*********************************************************************************************************
find line with #JAVA_OPTS="$JAVA_OPTS
-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
*********************************************************************************************************
************************************
save your changes to standalone.conf
************************************
*****************************************
run WildFly with security manager enabled
*****************************************
./standalone.sh -secmgr
popd
***********************************************************************
see above step for running the EntityTestCase or SessionFactoryTestCase
***********************************************************************
(
https://hibernate.atlassian.net/browse/HHH-15514#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15514#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:4ec4822 )