問題点
パッケージを復元またはインストールしようとすると、次のようなエラーが表示されます。
INFO - [java] java.security.AccessControlException: User 'Amalaowala' not allowed rights '2' on handle /apps/cq/java/com/test/day/freemarker/FreemarkerUtil.java INFO - [java] at com.day.cq.jcr.adapter.UserData.grant(Lcom/day/cq/contentbus/Page;I)V(UserData.java:501) INFO - [java] at com.day.cq.jcr.adapter.TicketAdapter.grant(Lcom/day/cq/contentbus/Page;I)V(TicketAdapter.java:564) INFO - [java] at com.day.cq.jcr.adapter.PageAdapter.startTransaction(Ljava/lang/Object;)Lcom/day/cq/contentbus/Container; (PageAdapter.java:575) INFO - [java] at com.day.cq.jcr.adapter.PageAdapter.startTransaction()Lcom/day/cq/contentbus/Container; (PageAdapter.java:554) INFO - [java] at com.day.cq.jcr.adapter.facade.PageFacade.startTransaction(Ljava/lang/Object;) Lcom/day/cq/contentbus/Container;(PageFacade.java:82) INFO - [java] at com.day.cq.jcr.adapter.facade.PageFacade.startTransaction()Lcom/day/cq/contentbus/Container; (PageFacade.java:69) INFO - [java] at com.day.cq.delivery.DeliveryPageWrapper.startTransaction()Lcom/day/cq/contentbus/Container; (DeliveryPageWrapper.java:264) INFO - [java] at com.day.cq.transform.DurboToPage.apply (Lcom/day/cq/contentbus/Ticket;Ljava/io/InputStream;Ljava/util/HashMap;)Lcom/day/cq/contentbus/Page;(DurboToPage.java:158) INFO - [java] at com.day.cq.contentbus.PackageUtil.unpackPackage (Lcom/day/cq/contentbus/Page;ZLcom/day/cq/contentbus/PackageProgressListener;)V(PackageUtil.java:393) INFO - [java] at com.day.cq.contentbus.PackageUtil.restorePackage (Lcom/day/cq/contentbus/Page;Lcom/day/cq/contentbus/PackageProgressListener;)V(PackageUtil.java:227) INFO - [java] at system.replication.templates.packutil.packutil_354$jsp$Handler.installPackage(Lcom/day/cq/contentbus/Page;) V(packutil_354$jsp.java:156) INFO - [java] at system.replication.templates.packutil.packutil_354$jsp$Handler.handle()V(packutil_354$jsp.java:95)
解決策
ユーザーの ACL に、/apps/cq/java/com/test/day/freemarker/FreemarkerUtil.java への書き込みアクセス権があることを確認してください。
追加情報
このエラーは、現在のユーザーが操作を完了するためのアクセス権を持っていない場合に発生します。この例は、ユーザーが書き込みアクセス権を持っているパッケージの復元です。