2014-03-07 5 views
0

일부 내부 응용 프로그램에 대해 배포 규칙 집합을 구성하려고하는데 그 중 하나에 문제가 있습니다.내 배포 규칙 집합이 무시됩니다.

RuleSet.xml :

<ruleset version="1.0+"> 
    <rule> 
    <id location="machine1.domain.net" /> 
    <action permission="run" /> 
    </rule> 
<rule> 
    <id /> 
    <action permission="block"> 
    <message>Blocked by corporate</message> 
    </action> 
</rule> 
</ruleset> 

JNLP 파일 :

<title>Virtual KVM Client</title> 
    <vendor>IBM</vendor> 
    </information> 

    <security> 
    <all-permissions/> 
    </security> 

    <resources> 
    <j2se version="1.6+ 1.5+ " /> 
    <jar href="/aessrp/avctIBMViewer.jar"/> 
    </resources> 

    <resources os="Windows"> 
    <nativelib href="/aessrp/avctKVMIOWin32.jar"/> 
    </resources> 

<resources os="Linux"> 
    <nativelib href="/aessrp/avctKVMIOLinux.jar"/> 
</resources> 

<application-desc main-class="com.avocent.ibmc.kvm.Main"> 
    <argument>ip=machine1.donain.net</argument> 
    <argument>helpurl=https://machine1.domain.net.net/aessrp /help/contents.html</argument> 
    <argument>user=?????</argument> 
    <argument>passwd=</argument> 
    <argument>apcp=1</argument> 
    <argument>version=2</argument> 
    <argument>kmport=3900</argument> 
    <argument>vport=3900</argument> 
    <argument>title=machine1.domain.net-Video Viewer</argument> 
</application-desc> 
</jnlp> 

응용 프로그램의 URL : 다른 URL에 대해 잘 작동

https://machine1.domain.net/ 

규칙 집합 파일 "위치 "그러나이 사람에게는 항상 같은 오류가 발생합니다 Blocked by corporate

이 코드에서 뭔가 잘못된 것을 볼 수 있습니까? Https 및 JNLP 파일에는 특별한 의미가 있습니까?

답변

0

마지막으로, 코드베이스 espcification이 JNLP 파일 위치 자체에 대한 참조를하지 않기 때문에 문제는 JNLP 파일에있었습니다.

[http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/deployment_rules.html]

HREF 필드가없는 JNLP 파일은 무시되고 기본 규칙이 적용됩니다.

대안 :

은 HREF가 JNLP 파일 자체를 주소로 JNLP을 만듭니다.

코드베이스없이 JNLP 파일을 작성하면 JNLP의 이름은 href (테스트되지 않음)로 사용됩니다.

해시 인증서로 필터를 만드십시오. 더 안전하지만 유지 관리가 어렵습니다.