[
https://issues.apache.org/jira/browse/OPENJPA-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Albert Lee updated OPENJPA-244:
-------------------------------
Attachment: OPENJPA-244.patch
Based on the previous design/implementation discussions. attached is a fix to
enable Java 2 security in openjpa implementation.
Tested platforms
----------------
Basic tests runs on Win32 system and have verified on WebSphere Application
Server with security both disabled/enabled.
Test profile option
-------------------
A new profile 'enabled-security' is added to openjpa pom.xml to enable running
tests with security on. The default is seourity off.
E.g. To run test with security on,
mvn test -P enabled-security,test-derby
TCK
---
Tests passed and no regression.
Performance
-----------
Overall no difference when security is off but showed a 8.4% degradation with
security on.
1) Results: base revision run before any changes were made.
> mvn test
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] OpenJPA ............................................... SUCCESS [0.016s]
[INFO] OpenJPA Utilities ..................................... SUCCESS [6.718s]
[INFO] OpenJPA Kernel ........................................ SUCCESS [3.532s]
[INFO] OpenJPA JDBC .......................................... SUCCESS [0.328s]
[INFO] OpenJPA XML Store ..................................... SUCCESS [0.047s]
[INFO] OpenJPA Kernel 1.5 .................................... SUCCESS [0.078s]
[INFO] OpenJPA JPA ........................................... SUCCESS [0.078s]
[INFO] OpenJPA JDBC 1.5 ...................................... SUCCESS [0.031s]
[INFO] OpenJPA JPA JDBC ...................................... SUCCESS
[1:10.547s]
[INFO] OpenJPA Aggregate Jar ................................. SUCCESS [1.547s]
[INFO] OpenJPA Distribution .................................. SUCCESS [0.141s]
[INFO] OpenJPA Integration Tests ............................. SUCCESS [0.000s]
[INFO] OpenJPA Examples Integration Tests .................... SUCCESS [0.000s]
[INFO] OpenJPA JPA TCK Integration Tests ..................... SUCCESS [0.000s]
[INFO] OpenJPA Xmlmapping 1.5 ................................ SUCCESS [0.015s]
[INFO] OpenJPA Persistence Examples .......................... SUCCESS [0.031s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 23 seconds
[INFO] Finished at: Fri Jun 29 10:18:45 CDT 2007
[INFO] Final Memory: 10M/28M
[INFO] ------------------------------------------------------------------------
2) Results: base revision plus patch applied, run with default security
disabled.
> mvn test
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] OpenJPA ............................................... SUCCESS [0.000s]
[INFO] OpenJPA Utilities ..................................... SUCCESS [7.718s]
[INFO] OpenJPA Kernel ........................................ SUCCESS [3.625s]
[INFO] OpenJPA JDBC .......................................... SUCCESS [0.407s]
[INFO] OpenJPA XML Store ..................................... SUCCESS [0.031s]
[INFO] OpenJPA Kernel 1.5 .................................... SUCCESS [0.094s]
[INFO] OpenJPA JPA ........................................... SUCCESS [0.093s]
[INFO] OpenJPA JDBC 1.5 ...................................... SUCCESS [0.032s]
[INFO] OpenJPA JPA JDBC ...................................... SUCCESS
[1:09.453s]
[INFO] OpenJPA Aggregate Jar ................................. SUCCESS [1.156s]
[INFO] OpenJPA Distribution .................................. SUCCESS [0.125s]
[INFO] OpenJPA Integration Tests ............................. SUCCESS [0.000s]
[INFO] OpenJPA Examples Integration Tests .................... SUCCESS [0.000s]
[INFO] OpenJPA JPA TCK Integration Tests ..................... SUCCESS [0.000s]
[INFO] OpenJPA Xmlmapping 1.5 ................................ SUCCESS [0.031s]
[INFO] OpenJPA Persistence Examples .......................... SUCCESS [0.032s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 23 seconds
[INFO] Finished at: Fri Jun 29 09:30:18 CDT 2007
[INFO] Final Memory: 10M/23M
[INFO] ------------------------------------------------------------------------
3) Results: base revision plus patch applied, run with security enabled.
> mvn test -P enable-security,test-derby
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] OpenJPA ............................................... SUCCESS [0.016s]
[INFO] OpenJPA Utilities ..................................... SUCCESS [7.969s]
[INFO] OpenJPA Kernel ........................................ SUCCESS [3.234s]
[INFO] OpenJPA JDBC .......................................... SUCCESS [0.438s]
[INFO] OpenJPA XML Store ..................................... SUCCESS [0.093s]
[INFO] OpenJPA Kernel 1.5 .................................... SUCCESS [0.110s]
[INFO] OpenJPA JPA ........................................... SUCCESS [0.078s]
[INFO] OpenJPA JDBC 1.5 ...................................... SUCCESS [0.047s]
[INFO] OpenJPA JPA JDBC ...................................... SUCCESS
[1:16.312s]
[INFO] OpenJPA Aggregate Jar ................................. SUCCESS [2.094s]
[INFO] OpenJPA Distribution .................................. SUCCESS [0.125s]
[INFO] OpenJPA Integration Tests ............................. SUCCESS [0.000s]
[INFO] OpenJPA Examples Integration Tests .................... SUCCESS [0.000s]
[INFO] OpenJPA JPA TCK Integration Tests ..................... SUCCESS [0.000s]
[INFO] OpenJPA Xmlmapping 1.5 ................................ SUCCESS [0.016s]
[INFO] OpenJPA Persistence Examples .......................... SUCCESS [0.046s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 30 seconds
[INFO] Finished at: Fri Jun 29 09:39:55 CDT 2007
[INFO] Final Memory: 10M/23M
[INFO] ------------------------------------------------------------------------
Albert Lee.
> Java 2 Security enablement
> --------------------------
>
> Key: OPENJPA-244
> URL: https://issues.apache.org/jira/browse/OPENJPA-244
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 0.9.8
> Reporter: Kevin Sutter
> Attachments: J2DoPrivHelper.java, OPENJPA-244.patch
>
>
> Via some testing with the WebSphere Application Server, it's been discovered
> that we're missing some doPriv blocks through out the OpenJPA code base.
> This JIRA report will be used to resolve these issues. More specific
> examples will be posted later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.