harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Cho (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6358) [classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Date Thu, 22 Oct 2009 23:33:59 GMT

    [ 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.


Mime
View raw message