You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kyle Cho (JIRA)" <ji...@apache.org> on 2009/10/20 00:28:04 UTC
[jira] Created: (HARMONY-6358) With root privilege,
testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
------------------------------------------------------------------------------------------------------------------
Key: HARMONY-6358
URL: https://issues.apache.org/jira/browse/HARMONY-6358
Project: Harmony
Issue Type: Bug
Components: Classlib
Affects Versions: 5.0M11
Environment: x86/redhat el5
Reporter: Kyle Cho
Priority: Minor
Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
class testInvalidParams {
public static void main(String[] args) throws Exception
{
try {
java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
System.err.println("failure: should throw null exception");
} catch (java.io.FileNotFoundException e) {
}
}
}
Running this test with DRL vm under root privilege produces:
failure: should throw null exception
Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Kyle Cho (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768970#action_12768970 ]
Kyle Cho commented on HARMONY-6358:
-----------------------------------
sun jdk 1.5/1.6 and ibm jdk 1.5 shows same behavior as you described. It seems these jres not to properly parse %t, system temp dir. It looks not right. E.g., under a regular user these jres create files under home_dir_of_user/{.1,.1.lck}, which causes the test fail.
ibm jdk 1.6 behaves same as harmony m11(e.g., under regular user these jres try to create /tmp/{home_dir_of_user,home_dir_of_user.lck, which can not be created unless the user's home dir is a top dir under /) when java.io.tmpdirs is /tmp.
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Kyle Cho (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769237#action_12769237 ]
Kyle Cho commented on HARMONY-6358:
-----------------------------------
I agree with you. this can be closed.
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-6358.
--------------------------------
Resolution: Invalid
Fix Version/s: 5.0M12
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
> Fix For: 5.0M12
>
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769147#action_12769147 ]
Tim Ellison commented on HARMONY-6358:
--------------------------------------
Kyle wrote: "ibm jdk 1.6 behaves same as harmony m11"
not too surprising since IBM Java 6 uses Harmony's logging code.
So you agree that that Harmony behavior is more sensible and we can close this issue?
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-6358) With root privilege,
testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison reassigned HARMONY-6358:
------------------------------------
Assignee: Tim Ellison
> With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> ------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison updated HARMONY-6358:
---------------------------------
Summary: [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails (was: With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails)
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6358) [classlib][logging] With root
privilege, testInvalidParams of
org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768755#action_12768755 ]
Tim Ellison commented on HARMONY-6358:
--------------------------------------
Here's a slightly modified version of your test:
public static void main(String args[]) throws Exception {
try {
java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
System.out.println("Exception not thrown");
} catch (java.io.FileNotFoundException e) {
System.out.println("Exception thrown");
}
System.out.println("Finished");
}
On Sun Java I get the following results as a regular user,
Exception not thrown
Finished
and running as root I see,
Exception thrown
Finished
On Harmony M11 I get the following result as a regular user,
Exception thrown
Finished
and running as root I see,
Exception not thrown
Finished
i.e. the opposite way round.
> [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6358
> URL: https://issues.apache.org/jira/browse/HARMONY-6358
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M11
> Environment: x86/redhat el5
> Reporter: Kyle Cho
> Assignee: Tim Ellison
> Priority: Minor
>
> Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.
> class testInvalidParams {
> public static void main(String[] args) throws Exception
> {
> try {
> java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
> System.err.println("failure: should throw null exception");
> } catch (java.io.FileNotFoundException e) {
> }
> }
> }
> Running this test with DRL vm under root privilege produces:
> failure: should throw null exception
> Under non root user, FileNotFoundException is thrown, which seems desired behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.