jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Test Plugin
  • MPTEST-70

no security debug log information after set maven.junit.jvmargs=-Djava.security.debug=all

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.8
  • Fix Version/s: 1.8.1
  • Labels:
    None
  • Environment:
    Build/running Apache AXIS2 testcase with maven 1.1.3

Description

I added the following 2 maven properties to"project.properties" file under axis2/modules/kernel/ directory. and do not see any securitty related logging information in the trace file. Similarly, the second part of the maven.junit.jvmargs, which is the specific policy file, mytestpolicy.policy, is also not loaded to the JVM.

------------------------------------------
maven.junit.fork=true
maven.junit.jvmargs=-Djava.security.debug=all -Djava.security.policy=c:/temp/mytestpolicy.policy
------------------------------------------

To reproducing this problem is quite simple and straight forward.
You can just use a simple testcase (any testcase is fine and no need to have any security codes) from your own; Add the 2 above properties to the project.properties file. then run the maven with your test.

Usually, if you see the log contains the "SCL" keywords, the security debug is being picked and used. otherwise, it is not.

Security log output example:
--------------------------------------
scl: (Thread[main,5,main]) getPermissions ProtectionDomain (file:/C:/Documents%20and%20Settings/mingcheu/ <no signer certificates>)
sun.misc.Launcher$AppClassLoader@24062406
<no principals>
java.security.Permissions@7da47da4 (
(java.lang.RuntimePermission exitVM)
(java.io.FilePermission \C:\Documents and Settings\mingcheu- read)
)

scl: (Thread[main,5,main])

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 06/Nov/06 9:30 AM

I do see the security output. Please provide more information about your environment if it is still a problem.

Show
Lukas Theussl added a comment - 06/Nov/06 9:30 AM I do see the security output. Please provide more information about your environment if it is still a problem.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Ming Cheung
Vote (0)
Watch (0)

Dates

  • Created:
    30/Aug/06 4:30 PM
    Updated:
    06/Nov/06 9:30 AM
    Resolved:
    06/Nov/06 9:30 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.