jdk/test/sun/security/tools/policytool/ChangeUI.html
author weijun
Thu, 13 Jun 2013 10:00:00 +0800
changeset 18169 deb6268716ef
parent 17427 5e7f51b62b1d
permissions -rw-r--r--
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound. 8015276: TEST_BUG: The 'ptool.test' can't be saved in the 'tmp' folder. 8016158: Instruction is not clear on how to use keytool to create JKS store in case Reviewed-by: mullan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
<applet width=100 height=100 code=ChangeUI.class>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
</applet>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
     7
<b>ATTENTION:</b> policytool now contains no platform-specific codes anymore and
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
should behaves exactly the same across all platforms. This also means:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
<ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    <li>You may only need to test it on one platform</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
    <li>You can create policy files for a platform which is different than
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
    the platform you are running policytool on</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
</ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
This is a multi-stage test.  Click on "done" when you have completed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
reading these instructions.<br><br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
First, policytool will be invoked.<br><br>
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
    19
<ol start="0">
18169
deb6268716ef 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents: 17427
diff changeset
    20
<li>Find (or create) a temporary directory that you have write access to.
deb6268716ef 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents: 17427
diff changeset
    21
(Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
<li>Add new policy entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
<li>Add permission:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
    <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
    Type                   Target name     Actions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
    FilePermission         c:\\foo\\bar    read
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
    </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
        <li>Press OK</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
        <li>Confirm the file name warning dialog appears</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
        <li>Choose Retain, confirm the permission edit dialog is closed</li>
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
    32
        <li>Double click the newly created FilePermission entry to edit it</li>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
        <li>Press OK</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
        <li>Confirm the file name warning dialog appears</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        <li>Choose Edit, confirm the permission edit dialog is still opened</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        <li>change Target name to c:\foo\bar</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        <li>Press OK, no warning dialog is shown</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
<li>Add permission:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    Type                   Target name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    DelegationPermission   "me@SOMEWHERE" "you@SOMEWHERE"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        <li>Press OK</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        <li>Double click the newly craeted DelegationPermission entry to edit it</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        <li>Confirm the target name is still "me@SOMEWHERE" "you@SOMEWHERE"</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        <li>Press OK</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
<li>Confirm there are 2 entries in the permission list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
<li>Press Done
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
<li>Double click the new policy entry to edit it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
<li>Add permission:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    Type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    AllPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
<li>Add a new Principal, say, KerberosPrincipal with Principal Name as aaa
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
    59
<li>Confirm there is 1 entry in the Principals list
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
<li>Confirm there are 3 entries in the permission list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
<li>Press cancel
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
<li>Double click the policy entry to edit it
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
    63
<li>Confirm there are ZERO entries in the Principals list
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
<li>Confirm there are 2 entries in the permission list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
<li>Press cancel
17427
5e7f51b62b1d 8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents: 2
diff changeset
    66
<li>Save as "/tmp/p"<br>
18169
deb6268716ef 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents: 17427
diff changeset
    67
(Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
deb6268716ef 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents: 17427
diff changeset
    68
         For example, "C:\foo\tmp\p" on Windows)
deb6268716ef 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents: 17427
diff changeset
    69
<li>Confirm that the file created in the previous step looks like
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
<pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
/* AUTOMATICALLY GENERATED ON Tue Jul 19 16:27:30 CST 2005*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
/* DO NOT EDIT */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
grant {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
  permission java.io.FilePermission "c:\\foo\\bar", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
  permission javax.security.auth.kerberos.DelegationPermission "\"me@SOMEWHERE\" \"you@SOMEWHERE\"";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
</pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
</ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
<br><br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
Press "Pass" if ... press "Fail" otherwise.<br><br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
</body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
</html>