[rfc][icedtea-web] PolicyEditor empty entries save to file

Andrew Azores aazores at redhat.com
Tue Jun 3 17:51:04 UTC 2014


On 05/27/2014 09:22 AM, Andrew Azores wrote:
> On 05/21/2014 11:54 AM, Andrew Azores wrote:
>> Hi,
>>
>> This patch makes it so that "empty" codebase entries (those with no 
>> permissions applied to them) will still be written to the policy 
>> file, so that on re-open, the "empty" codebase is still present. A 
>> special exception is added for the default "All Applets" codebase, 
>> since it always appears in the editor anyway and it doesn't make 
>> sense to have a persistent empty entry in that case.
>>
>> For example:
>> 1) policyeditor -file .config/icedtea-web/security/java.policy
>> 2) add a new codebase which isn't already present, eg http://example.com
>> 3) save the file
>> 4) $EDITOR config/icedtea-web/security/java.policy - verify the empty 
>> "grant codeBase http://example/com" block is present
>> 5) policyeditor -file .config/icedtea-web/security/java.policy - 
>> verify the example.com codebase appears and has no permissions applied
>>
>> ChangeLog:
>>
>> Empty codebase entries in PolicyEditor are saved to file
>> * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java 
>> (savePolicyFile): fileLock made final, enabledPermissions declaration 
>> moved closer to usage
>> * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEntry.java 
>> (toString): add codebase.isEmpty() condition to returning empty 
>> string result
>>
>> Thanks,
>>
>
> Ping.
>
> Thanks,
>

Super ping! ;)

Thanks,

-- 
Andrew A



More information about the distro-pkg-dev mailing list