Re: [security][testing] unexpected unit test failure

2006-11-02 Thread Vladimir Ivanov
Thanks, it fixed now. Thanks, Vladimir On 11/2/06, Stepan Mishura <[EMAIL PROTECTED]> wrote: Fixed at r470318. Please verify. -Stepan. On 11/2/06, Vladimir Ivanov wrote: > > Could somebody look at new unit test failure (winXP, j9): > Test: testGenKey_keyPair Class: > org.apache.harmony.too

Re: [security][testing] unexpected unit test failure

2006-11-02 Thread Stepan Mishura
Fixed at r470318. Please verify. -Stepan. On 11/2/06, Vladimir Ivanov wrote: Could somebody look at new unit test failure (winXP, j9): Test: testGenKey_keyPair Class: org.apache.harmony.tools.keytool.tests.GenKeyTest junit.framework.AssertionFailedError: Cannot create a temporary file C:\DOC

[security][testing] unexpected unit test failure

2006-11-02 Thread Vladimir Ivanov
Could somebody look at new unit test failure (winXP, j9): Test: testGenKey_keyPair Class: org.apache.harmony.tools.keytool.tests.GenKeyTest junit.framework.AssertionFailedError: Cannot create a temporary file C:\DOCUME~1\vivanov1\LOCALS~1\Temp\\GenKeyTestTemporaryFile. File with such name alread

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Mark Hindess
On 1 November 2006 at 13:39, Mark Hindess <[EMAIL PROTECTED]> wrote: > > Fixed in r469902. Turns out the exec was putting double quotes around > the classpath argument (which might make sense if it was going to a > shell) but it doesn't for an exec syscall. This resulted in classes > being sear

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Tim Ellison
Mark Hindess wrote: > Fixed in r469902. Turns out the exec was putting double quotes around > the classpath argument (which might make sense if it was going to a > shell) but it doesn't for an exec syscall. This resulted in classes > being search for in the non-existent directory: > > "/path/t

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Alexey Varlamov
2006/11/1, Tim Ellison <[EMAIL PROTECTED]>: Mark Hindess wrote: > Fixed in r469902. Turns out the exec was putting double quotes around > the classpath argument (which might make sense if it was going to a > shell) but it doesn't for an exec syscall. This resulted in classes > being search for

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Tim Ellison
Mark Hindess wrote: > Fixed in r469902. Turns out the exec was putting double quotes around > the classpath argument (which might make sense if it was going to a > shell) but it doesn't for an exec syscall. This resulted in classes > being search for in the non-existent directory: > > "/path/t

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Mark Hindess
Fixed in r469902. Turns out the exec was putting double quotes around the classpath argument (which might make sense if it was going to a shell) but it doesn't for an exec syscall. This resulted in classes being search for in the non-existent directory: "/path/to/modules/luni/bin/test rather

Re: [security][testing] 2 tests failed today

2006-11-01 Thread Tim Ellison
Boris Kuznetsov wrote: > The tests use tests.support.Support_Exec.execJava2() to perform > testing on other JVM. This method uses Runtime.getRuntime().exec() to > run command. You can see command (it looks like java -cp > ) in the test's System.out. It woks OK on Win, but produces > NoClassDef

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Alexey Varlamov
it can't load class file. > >> > >> On 10/31/06, Tim Ellison <[EMAIL PROTECTED]> wrote: > >> > I see failures too, and it may be my check-in > >> >http://svn.apache.org/viewvc?view=rev&revision=469230 > >> > > >>

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Boris Kuznetsov
http://svn.apache.org/viewvc?view=rev&revision=469230 > > > > (though I did run stand-alone LUNI & SECURITY tests). I'll investigate > > and roll back if necessary. > > > > Regards, > > Tim > > > > Vladimir Ivanov wrote: > > &

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Vladimir Ivanov
x implementation of >> Runtime.exec() - it can't load class file. >> >> On 10/31/06, Tim Ellison <[EMAIL PROTECTED]> wrote: >> > I see failures too, and it may be my check-in >> >http://svn.apache.org/viewvc?view=rev&revision=469230 >>

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Evgueni Brevnov
untime.exec() - it can't load class file. On 10/31/06, Tim Ellison <[EMAIL PROTECTED]> wrote: > I see failures too, and it may be my check-in >http://svn.apache.org/viewvc?view=rev&revision=469230 > > (though I did run stand-alone LUNI & SECURITY tests). I&#

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Tim Ellison
; wrote: >> > I see failures too, and it may be my check-in >> >http://svn.apache.org/viewvc?view=rev&revision=469230 >> > >> > (though I did run stand-alone LUNI & SECURITY tests). I'll investigate >> > and roll back if necessary. >&

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Boris Kuznetsov
run stand-alone LUNI & SECURITY tests). I'll investigate and roll back if necessary. Regards, Tim Vladimir Ivanov wrote: > Today me CC failed to run 2 tests on linux box: > > [EMAIL PROTECTED]<http://www.harmonytest.org/testapp.do?method=showresult&id=1037189> &

Re: [security][testing] 2 tests failed today

2006-10-31 Thread Tim Ellison
I see failures too, and it may be my check-in http://svn.apache.org/viewvc?view=rev&revision=469230 (though I did run stand-alone LUNI & SECURITY tests). I'll investigate and roll back if necessary. Regards, Tim Vladimir Ivanov wrote: > Today me CC failed to run 2 te

[security][testing] 2 tests failed today

2006-10-31 Thread Vladimir Ivanov
Today me CC failed to run 2 tests on linux box: [EMAIL PROTECTED] [EMAIL PROTECTED] The results were upload to: http://www.harmonytest.org/testapp.do?method=showrun&id=88&name=&result=2&jira=0 : Could somebody reproduce/ fix t

Re: [classlib][security]Re: [jira] Created: (HARMONY-1963) [classlib][security] Harmony cannot read security policy file correctly

2006-10-26 Thread Boris Kuznetsov
I'll take a look. thanks, Boris On 10/25/06, Paulex Yang <[EMAIL PROTECTED]> wrote: Any security guys can help to look at this issue? thanks in advance. I haven't found time to looked closer to find the cause yet, but it seems a little serious. Paulex Yang (JIRA) wrote: >

[classlib][security]Re: [jira] Created: (HARMONY-1963) [classlib][security] Harmony cannot read security policy file correctly

2006-10-25 Thread Paulex Yang
Any security guys can help to look at this issue? thanks in advance. I haven't found time to looked closer to find the cause yet, but it seems a little serious. Paulex Yang (JIRA) wrote: [classlib][security] Harmony cannot read security policy file corr

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Leo Li
Class.newInstance(Class.java:1250) > > > >at java.security.Policy$1.run(Policy.java:156) > > > >at > > > > java.security.AccessController.doPrivileged(AccessController.java :179) > > > >at java.security.Policy.getDefaultProvider(Policy

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
blePolicy(Policy.java:191) > > >at java.security.Policy.getPolicy(Policy.java:132) > > >at org.apache.harmony.luni.util.PriviAction.run(PriviAction.java > :133) > > > at > > > java.security.AccessController.doPrivileged(AccessController.java:179) > >

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Leo Li
r.java:179) > >at java.lang.System.setSecurityManager(System.java:825) > >at java.lang.System.installSecurityManager(System.java:155) > >at java.lang.System.completeInitialization(System.java:117) > >at java.lang.Thread.(Thread.java:129) > > > > > > 2006/10/18, Paulex Yang <[EMAIL PROTECTED]

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
age i18n > >> helper class. Its static init codes try to load ResourceBundle but > >> failed. The new i18n helper o.a.h.l.internal.nls.Messages has same > >> issue. I modified the java.net.URL ln.296 as below, and the test > passed. > >> -throw new Malformed

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Leo Li
"K00d8", spec)); //$NON-NLS-1$ >> + throw new MalformedURLException("exception message >> here"); >> >> Leo Li wrote: >> > Hi, all: >> > During the self-hosting of Derby, I found a security policy if i

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Paulex Yang
the test passed. -throw new MalformedURLException( -org.apache.harmony.luni.util.Msg.getString( -"K00d8", spec)); //$NON-NLS-1$ + throw new MalformedURLException("exception message here"); Leo Li wrote: > Hi, all: > During the self-hosting of Derby, I

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Tim Ellison
Alexey Varlamov wrote: > Can't we use lazy initialization here? I had similar experience with > this class in the past, and think it should not be so fragile to > initialization sequence. And definitely it should not affect whole VM > run. It's tricky to ensure the initialization sequence is solid

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Alexey Varlamov
gt; Hi, all: > During the self-hosting of Derby, I found a security policy if is > applied will lead to errors in loading the class of JarFile. IBM vm > will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi > while > drlvm will crash with "SEH handler:

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Paulex Yang
on message here"); Leo Li wrote: Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead to errors in loading the class of JarFile. IBM vm will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi while drlvm will crash with "SEH h

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-18 Thread Paulex Yang
Leo Li wrote: Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead to errors in loading the class of JarFile. IBM vm will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi while drlvm will crash with "SEH handler: shutdown err

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-15 Thread Leo Li
Ok. I will call it runing Derby on Harmony.:) On 10/14/06, Tim Ellison <[EMAIL PROTECTED]> wrote: Leo Li wrote: > During the self-hosting of Derby... Minor nit, but as Sian pointed out before we would usually reserve 'self-hosting' to mean using Harmony in development of the project itself, i.

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-14 Thread Tim Ellison
Leo Li wrote: > During the self-hosting of Derby... Minor nit, but as Sian pointed out before we would usually reserve 'self-hosting' to mean using Harmony in development of the project itself, i.e. self hosting in the build system or using Eclipse. I don't consider running other apps as self-hos

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Mark Hindess
Brilliant. Nice work Yuri. I'll take a look at changing the dependency code tomorrow. -Mark On 13 October 2006 at 17:43, "Yuri Kropachev" <[EMAIL PROTECTED]> wrote: > > Yes, it can. > > Thanks, > Yuri > > > On 10/13/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: > > > > Cool! > > > > Do you

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Tim Ellison
Yuri Kropachev wrote: > Yes, it can. That's great news -- thanks Yuri. Now we can remove the hacks in the build process (that unsign the jar). Regards, Tim -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. -

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Geir Magnusson Jr.
w00t! Yuri Kropachev wrote: Hello, With reference to my e-mail dated 2006-06-29 (below) and JIRA ## 742, 837, 872, 908, 1159, 1396, 1837, I inform you that the provider's code is ready to use. Thanks, Yuri Hello, Let me make update to the February talk on a need to have in Harmony means fo

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Tony Wu
I have tried on classlib r454653, drlvm r454551 and got the same result. On 10/13/06, Leo Li <[EMAIL PROTECTED]> wrote: Sorry forget the security policy file. And I add it as the attachment. On 10/13/06, Leo Li <[EMAIL PROTECTED]> wrote: > > Hi, all: > During the sel

Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Leo Li
Sorry forget the security policy file. And I add it as the attachment.  On 10/13/06, Leo Li <[EMAIL PROTECTED]> wrote: Hi, all:  During the self-hosting of Derby, I found a security policy  if is applied will lead to errors in loading the class of JarFile. IBM vm will throw jav

[classlib][archive]Security policy leads to vm crashes in loading class of JarFile

2006-10-13 Thread Leo Li
Hi, all: During the self-hosting of Derby, I found a security policy if is applied will lead to errors in loading the class of JarFile. IBM vm will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi while drlvm will crash with "SEH handler: shutdown errorSEH handler: too

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Yuri Kropachev
Yes, it can. Thanks, Yuri On 10/13/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: Cool! Do you mean that it can now validate a signature in BouncyCastle jar file? Thanks, Mikhail 2006/10/13, Yuri Kropachev <[EMAIL PROTECTED]>: > Hello, > > With reference to my e-mail dated 2006-06-29 (below

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Mikhail Loenko
Cool! Do you mean that it can now validate a signature in BouncyCastle jar file? Thanks, Mikhail 2006/10/13, Yuri Kropachev <[EMAIL PROTECTED]>: Hello, With reference to my e-mail dated 2006-06-29 (below) and JIRA ## 742, 837, 872, 908, 1159, 1396, 1837, I inform you that the provider's code

Re: [classlib][security] provider for algorithms for signing and verifying

2006-10-13 Thread Yuri Kropachev
Hello, With reference to my e-mail dated 2006-06-29 (below) and JIRA ## 742, 837, 872, 908, 1159, 1396, 1837, I inform you that the provider's code is ready to use. Thanks, Yuri Hello, Let me make update to the February talk on a need to have in Harmony means for signing and verifying; I ref

Re: [jira] Resolved: (HARMONY-1837) [classlib][security] crypto provider: DSAKeyFactory implementation

2006-10-12 Thread Mikhail Loenko
class to a separate file to not break "ant clean" excluded newly integrated DASKeyFactory from the crypto provider to not cause test failures. more investigation is needed can't reproduce the failures. I'll rerun couple times and commit if it's OK Thanks, Mikhail

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-14 Thread Tim Ellison
Geir Magnusson Jr. wrote: > Nice work all. You guys are amazing. Definitely create that patch and > attach to the initial JIRA. yep -- cool to see that get worked on by a number of people in the community. A tricky bug too, so good teamwork! Regards, Tim > Jimmy, Jing Lv wrote: >> Richard Li

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-13 Thread Yuri Kropachev
Collegues, thanks a lot for identifying the bug !!! The fix you propose is correct. Thanks, Yuri Nice work all. You guys are amazing. Definitely create that patch and attach to the initial JIRA. geir Jimmy, Jing Lv wrote: Richard Liang wrote: After two-day struggling with Ja

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-12 Thread Geir Magnusson Jr.
Nice work all. You guys are amazing. Definitely create that patch and attach to the initial JIRA. geir Jimmy, Jing Lv wrote: Richard Liang wrote: After two-day struggling with JarFile, ObjectInputStream and MessageDigest, in the end, I have identified the root cause. And now I have two pan

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-12 Thread Geir Magnusson Jr.
Richard Liang wrote: After two-day struggling with JarFile, ObjectInputStream and MessageDigest, in the end, I have identified the root cause. And now I have two panda-eyes[1] ;-) Nice work! It seems a bug of org.apache.harmony.security.provider.crypto.SHA1Impl. As I have no idea about SH

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-12 Thread Jimmy, Jing Lv
Richard Liang wrote: After two-day struggling with JarFile, ObjectInputStream and MessageDigest, in the end, I have identified the root cause. And now I have two panda-eyes[1] ;-) It seems a bug of org.apache.harmony.security.provider.crypto.SHA1Impl. As I have no idea about SHA1. Could any one

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-12 Thread Andrew Zhang
computeHash(intArray); wordIndex = 0; } } if ( i >= toByte ) { // all input bytes appended // andrew comment: is it break condition 2? or it should be (i > toByte) ? p.s: all tests could pass if using i > toByte. return ;

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-12 Thread Richard Liang
After two-day struggling with JarFile, ObjectInputStream and MessageDigest, in the end, I have identified the root cause. And now I have two panda-eyes[1] ;-) It seems a bug of org.apache.harmony.security.provider.crypto.SHA1Impl. As I have no idea about SHA1. Could any one have a look at this p

Re: [classlib] [ldap] reuse of security parser

2006-09-12 Thread Daniel Gandara
8 AM Subject: Re: [classlib] [ldap] reuse of security parser Hi Daniel, Yes, the parser used by 'security' code put some restrictions on distinguished names (see [1]) and IMO it is a good idea to try to improve the parser to make it possible to reuse it by 'jndi' module. Whe

Re: [classlib] [ldap] reuse of security parser

2006-09-11 Thread Stepan Mishura
Hi Daniel, Yes, the parser used by 'security' code put some restrictions on distinguished names (see [1]) and IMO it is a good idea to try to improve the parser to make it possible to reuse it by 'jndi' module. When we developed security code we also thought about creating a

Re: [classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-10 Thread Richard Liang
On 9/9/06, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: I was trying the latest snapshot with the JBoss installer (4.0.1) and found a problem processing the SHA signatures int the jar manifest. I've entered a JIRA - HARMONY-1412 I will have a look at it. ;-) geir -

Re: [classlib] [ldap] reuse of security parser

2006-09-08 Thread Geir Magnusson Jr.
te to protected. The specific question is: should we made this change on the security package and submit it with our contribution? or should we ask for this change to be made by the ones who wrote the security package? Submit a patch maybe? :) geir I'll wait for feedback, Thank

[classlib] [ldap] reuse of security parser

2006-09-08 Thread Daniel Gandara
ut we would have to change some methods and attributes visibility of DNParser and AttributeTypeAndValue from private to protected. The specific question is: should we made this change on the security package and submit it with our contribution? or should we ask for this change to be made by the

[classlib][security] problem processing SHA signatures in JBoss installer manifest

2006-09-08 Thread Geir Magnusson Jr.
I was trying the latest snapshot with the JBoss installer (4.0.1) and found a problem processing the SHA signatures int the jar manifest. I've entered a JIRA - HARMONY-1412 geir - Terms of use : http://incubator.apache.org/har

Re: [classlib][security] Exception compatibility

2006-09-05 Thread Boris Kuznetsov
behavior at least logical. Thanks, Mikhail 2006/9/4, Boris Kuznetsov <[EMAIL PROTECTED]>: > Usually Harmony behavior is compared with RI behavior. But in security > area RI behavior depends on provider. With different providers RI > behave differently. > > For example, RI pas

Re: [classlib][security] Exception compatibility

2006-09-05 Thread Mikhail Loenko
> I have already written patch for HARMONY-1120 to follow RI behavior. > > 2006/9/5, Stepan Mishura <[EMAIL PROTECTED]>: > > On 9/4/06, Boris Kuznetsov wrote: > > > > > > Usually Harmony behavior is compared with RI behavior. But in security > > > area RI

Re: [classlib][security] Exception compatibility

2006-09-05 Thread Denis Kishenko
gt; On 9/4/06, Boris Kuznetsov wrote: > > > > Usually Harmony behavior is compared with RI behavior. But in security > > area RI behavior depends on provider. With different providers RI > > behave differently. > > > > For example, RI passes incorrect method arg

Re: [classlib][security] Exception compatibility

2006-09-05 Thread Mikhail Loenko
e the checks. Otherwise let's keep it to make the behavior at least logical. Thanks, Mikhail 2006/9/4, Boris Kuznetsov <[EMAIL PROTECTED]>: Usually Harmony behavior is compared with RI behavior. But in security area RI behavior depends on provider. With different providers RI be

Re: [classlib][security] Exception compatibility

2006-09-05 Thread Denis Kishenko
TED]>: On 9/4/06, Boris Kuznetsov wrote: > > Usually Harmony behavior is compared with RI behavior. But in security > area RI behavior depends on provider. With different providers RI > behave differently. > > For example, RI passes incorrect method arguments to provider. In such &g

Re: [classlib][security] Exception compatibility

2006-09-04 Thread Stepan Mishura
On 9/4/06, Boris Kuznetsov wrote: Usually Harmony behavior is compared with RI behavior. But in security area RI behavior depends on provider. With different providers RI behave differently. For example, RI passes incorrect method arguments to provider. In such cases provider may throw

Re: [classlib][security] Exception compatibility

2006-09-04 Thread Richard Liang
On 9/4/06, Boris Kuznetsov <[EMAIL PROTECTED]> wrote: Usually Harmony behavior is compared with RI behavior. But in security area RI behavior depends on provider. With different providers RI behave differently. For example, RI passes incorrect method arguments to provider. In such

Re: [classlib][security] Exception compatibility

2006-09-04 Thread Andrew Zhang
On 9/4/06, Boris Kuznetsov <[EMAIL PROTECTED]> wrote: Usually Harmony behavior is compared with RI behavior. But in security area RI behavior depends on provider. With different providers RI behave differently. For example, RI passes incorrect method arguments to provider. In such

[classlib][security] Exception compatibility

2006-09-04 Thread Boris Kuznetsov
Usually Harmony behavior is compared with RI behavior. But in security area RI behavior depends on provider. With different providers RI behave differently. For example, RI passes incorrect method arguments to provider. In such cases provider may throw exception (e.g. DigestException or

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Mikhail Loenko
ublic class a { > > > > >static public void main(String[] args) throws Exception { > > > > >Permission p = new PropertyPermission("java.version", > "read"); > > > > >ProtectionDomain d = a.class.getProtectionDoma

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Alexey Varlamov
{ > > > > >static public void main(String[] args) throws Exception { > > > > >Permission p = new PropertyPermission("java.version", > "read"); > > > > >ProtectionDomain d = a.class.getProtectionDomain(); >

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Andrew Zhang
gt;static public void main(String[] args) throws Exception { > > > >Permission p = new PropertyPermission("java.version", "read"); > > > >ProtectionDomain d = a.class.getProtectionDomain(); > > > >System.out.pr

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Mikhail Loenko
on", "read"); > > >ProtectionDomain d = a.class.getProtectionDomain(); > > > System.out.println( "== " + d.implies(p)); > > >} > > > } > > > > > > 2006/8/22, Paulex Yang <[EMAIL PROTECTED]&g

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Andrew Zhang
>} > > } > > > > 2006/8/22, Paulex Yang <[EMAIL PROTECTED]>: > > > Andrew Zhang wrote: > > > > Hi all, > > > > > > > > I noticed that Harmony security manager throws unexpected security > > > > exception >

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Mikhail Loenko
nDomain d = a.class.getProtectionDomain(); >System.out.println( "== " + d.implies(p)); >} > } > > 2006/8/22, Paulex Yang <[EMAIL PROTECTED]>: > > Andrew Zhang wrote: > > > Hi all, > > > > > > I noticed that Harmony secur

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-22 Thread Andrew Zhang
ission("java.version", "read"); ProtectionDomain d = a.class.getProtectionDomain(); System.out.println( "== " + d.implies(p)); } } 2006/8/22, Paulex Yang <[EMAIL PROTECTED]>: > Andrew Zhang wrote: > > Hi all, > > > > I noticed that Ha

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-21 Thread Paulex Yang
Mikhail Loenko wrote: No The reason is these lines behave differently import java.security.*; import java.util.*; public class a { static public void main(String[] args) throws Exception { Permission p = new PropertyPermission("java.version", "read"); ProtectionDomain d = a.cla

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-21 Thread Mikhail Loenko
.getProtectionDomain(); System.out.println( "== " + d.implies(p)); } } 2006/8/22, Paulex Yang <[EMAIL PROTECTED]>: Andrew Zhang wrote: > Hi all, > > I noticed that Harmony security manager throws unexpected security > exception > even when policy fil

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-21 Thread Paulex Yang
Andrew Zhang wrote: Hi all, I noticed that Harmony security manager throws unexpected security exception even when policy file allows the permission. I have raised HARMONY-1242( http://issues.apache.org/jira/browse/HARMONY-1242) for record. Would anybody help have a look? Thanks! Seems

Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-21 Thread Mikhail Loenko
Looking 2006/8/22, Andrew Zhang <[EMAIL PROTECTED]>: Hi all, I noticed that Harmony security manager throws unexpected security exception even when policy file allows the permission. I have raised HARMONY-1242( http://issues.apache.org/jira/browse/HARMONY-1242) for record. Would anybod

[classlib][security] SecurityManager.checkPropertyAccess(String) bug?

2006-08-21 Thread Andrew Zhang
Hi all, I noticed that Harmony security manager throws unexpected security exception even when policy file allows the permission. I have raised HARMONY-1242( http://issues.apache.org/jira/browse/HARMONY-1242) for record. Would anybody help have a look? Thanks! On 8/21/06, Andrew Zhang (JIRA

Re: [jira] Created: (HARMONY-1120) [class][security] MessageDigest.update(byte[], int, int) incompatible with RI exceptions

2006-08-09 Thread Denis Kishenko
-100, 57); Spec doesn't mention anything about any exceptions. I filed this issue as non-bug difference. Does anybody have objections? 2006/8/9, Denis Kishenko (JIRA) <[EMAIL PROTECTED]>: [class][security] MessageDigest.update(byte[], int, i

Re: [jira] Commented: (HARMONY-1075) [classlib][security] unexpected ASN1Exception for java.security.cert.X509CertSelector().addPathToName(8, new byte[] { 2, 2, 2, 2 })

2006-08-06 Thread Vladimir Ivanov
ONY-1075?page=comments#action_12426130] Vladimir Ivanov commented on HARMONY-1075: -- one minor note: ASN1Exception is subclass of IOException so it is may be 'non-bug-diff' > [classlib][security] unexpected ASN1Exception for java.security.cert

Re: [jira] Commented: (HARMONY-1075) [classlib][security] unexpected ASN1Exception for java.security.cert.X509CertSelector().addPathToName(8, new byte[] { 2, 2, 2, 2 })

2006-08-06 Thread Mikhail Loenko
130 ] Vladimir Ivanov commented on HARMONY-1075: -- one minor note: ASN1Exception is subclass of IOException so it is may be 'non-bug-diff' > [classlib][security] unexpected ASN1Exception for java.security.cert.X509CertSelector().addPathToNa

Re: svn commit: r425020 - in /incubator/harmony/enhanced/classlib/trunk: make/ modules/security/ modules/security/make/ modules/security/src/main/java/common/org/apache/harmony/security/provider/crypt

2006-07-25 Thread Oliver Deakin
Classlib is building successfully on my machine again now. Regards, Oliver Mikhail Loenko wrote: Good catch! I've managed to reproduce the problem I'll fix it shortly Thanks, Mikhail - Terms of use : http://incubator.apache

Re: svn commit: r425020 - in /incubator/harmony/enhanced/classlib/trunk: make/ modules/security/ modules/security/make/ modules/security/src/main/java/common/org/apache/harmony/security/provider/crypt

2006-07-25 Thread Mikhail Loenko
Good catch! I've managed to reproduce the problem I'll fix it shortly Thanks, Mikhail - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-25 Thread Alexei Zakharov
contain providers, "jndi" for > example. The JNDI DNS provider is currently located there. If someone > will decide to implement some other JNDI provider we will need to > decide where should we put it. IMHO it is not a very good idea to keep > different types of providers (jn

Re: svn commit: r425315 - in /incubator/harmony/enhanced/classlib/trunk: depends/files/ modules/security/ modules/security/make/ modules/security/src/main/java/common/java/security/ modules/security/s

2006-07-25 Thread Stepan Mishura
es (both contains a class with the same name - RandomBitsSupplier). So everybody who works with 'security' module under Eclipse has to remember about it and add mannually corresponding entry (at least at once). Thanks, Stepan. On 7/25/06, Mikhail Loenko wrote: try "ant rebuild&

Re: svn commit: r425315 - in /incubator/harmony/enhanced/classlib/trunk: depends/files/ modules/security/ modules/security/make/ modules/security/src/main/java/common/java/security/ modules/security/s

2006-07-25 Thread Mikhail Loenko
try "ant rebuild" 2006/7/25, Igor Stolyarov <[EMAIL PROTECTED]>: Mikhail, after your commit, I can't build Harmony: [javac] C:\new_harmony\Harmony\enhanced\classlib\trunk\modules\security\src\ main\java\common\org\apache\harmony\security\provider\crypto\SHA1PRNG_Secu

Re: svn commit: r425315 - in /incubator/harmony/enhanced/classlib/trunk: depends/files/ modules/security/ modules/security/make/ modules/security/src/main/java/common/java/security/ modules/security/s

2006-07-25 Thread Igor Stolyarov
Mikhail, after your commit, I can't build Harmony: [javac] C:\new_harmony\Harmony\enhanced\classlib\trunk\modules\security\src\ main\java\common\org\apache\harmony\security\provider\crypto\SHA1PRNG_SecureRand omImpl.java:28: cannot find symbol [javac] symbol : class RandomBitsSup

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Stepan Mishura
for example. The JNDI DNS provider is currently located there. If someone will decide to implement some other JNDI provider we will need to decide where should we put it. IMHO it is not a very good idea to keep different types of providers (jndi and security here) at one place. Please explain wh

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Geir Magnusson Jr
Tim Ellison wrote: > Geir Magnusson Jr wrote: >> Tim Ellison wrote: >>> Geir Magnusson Jr wrote: I've asked Sun about this. It would be nice if people could re-use their root cert store. What format does IBM and BEA use? >>> FWIW the IBM Java SDK passes through the Sun format

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Alexei Zakharov
rent types of providers (jndi and security here) at one place. Regards, 2006/7/24, Stepan Mishura <[EMAIL PROTECTED]>: IMO, it is not a big issue. We may create one module for all providers (like 'tools' module) and building 'providers' module will produce a set of requi

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Stepan Mishura
Tim Ellison wrote: > > > > Geir Magnusson Jr wrote: > > > >> I'm integrating HARMONY-536, the JSSE provider. Two things: > > > >> > > > >> 1) it's contributed to go into x-net, but the package namespace is > > > >&

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Mikhail Loenko
Magnusson Jr wrote: > > >> I'm integrating HARMONY-536, the JSSE provider. Two things: > > >> > > >> 1) it's contributed to go into x-net, but the package namespace is > > >> > > >> o.a.h.security.provider.jsse > > >

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-24 Thread Stepan Mishura
t; Tim Ellison wrote: > > Geir Magnusson Jr wrote: > >> I'm integrating HARMONY-536, the JSSE provider. Two things: > >> > >> 1) it's contributed to go into x-net, but the package namespace is > >> > >> o.a.h.security.provider.jsse

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-21 Thread Tim Ellison
Geir Magnusson Jr wrote: > Tim Ellison wrote: >> Geir Magnusson Jr wrote: >>> I've asked Sun about this. It would be nice if people could re-use >>> their root cert store. >>> >>> What format does IBM and BEA use? >> FWIW the IBM Java SDK passes through the Sun format JKS. > > Does "passes throug

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-20 Thread Geir Magnusson Jr
Mikhail Loenko wrote: > 2006/7/21, Geir Magnusson Jr <[EMAIL PROTECTED]>: >> >> >> Tim Ellison wrote: >> > Geir Magnusson Jr wrote: >> >> I've asked Sun about this. It would be nice if people could re-use >> >> their root cert store. >> >> >> >> What format does IBM and BEA use? >> > >> > FWIW t

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-20 Thread Mikhail Loenko
2006/7/21, Geir Magnusson Jr <[EMAIL PROTECTED]>: Tim Ellison wrote: > Geir Magnusson Jr wrote: >> I've asked Sun about this. It would be nice if people could re-use >> their root cert store. >> >> What format does IBM and BEA use? > > FWIW the IBM Java SDK passes through the Sun format JKS.

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-20 Thread Geir Magnusson Jr
Tim Ellison wrote: > Geir Magnusson Jr wrote: >> I've asked Sun about this. It would be nice if people could re-use >> their root cert store. >> >> What format does IBM and BEA use? > > FWIW the IBM Java SDK passes through the Sun format JKS. Does "passes through" means it's able to use it? >

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-20 Thread Tim Ellison
Geir Magnusson Jr wrote: > I've asked Sun about this. It would be nice if people could re-use > their root cert store. > > What format does IBM and BEA use? FWIW the IBM Java SDK passes through the Sun format JKS. Besides JKS there is also the BouncyCastle format (BKS) and a GNU keystore format

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Mikhail Loenko
I'm integrating HARMONY-536, the JSSE provider. Two things: >>> >>> 1) it's contributed to go into x-net, but the package namespace is >>> >>> o.a.h.security.provider.jsse >>> >>> so I wonder if this would be better off in the

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Tim Ellison
Geir Magnusson Jr wrote: > > George Harley wrote: > >> I think you are right. The kind of information we would want to have in >> a Harmony cacerts file is available from CA web sites (e.g. Verisign and >> Thawte). Inclusion of Thawte root certs requires accepting their license >> which is availa

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Geir Magnusson Jr
George Harley wrote: > I think you are right. The kind of information we would want to have in > a Harmony cacerts file is available from CA web sites (e.g. Verisign and > Thawte). Inclusion of Thawte root certs requires accepting their license > which is available on the repository access page

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Geir Magnusson Jr
I've asked Sun about this. It would be nice if people could re-use their root cert store. What format does IBM and BEA use? geir Boris Kuznetsov wrote: > Quotation from JavaTM Cryptography Architecture > API Specification & Reference > http://java.sun.com/j2se/1.5.0/d

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread George Harley
Geir Magnusson Jr wrote: Tim Ellison wrote: Geir Magnusson Jr wrote: I'm integrating HARMONY-536, the JSSE provider. Two things: 1) it's contributed to go into x-net, but the package namespace is o.a.h.security.provider.jsse so I wonder if this would be better off in th

  1   2   3   4   >