<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>40819</bug_id>
          
          <creation_ts>2021-08-27 17:04:50 +0300</creation_ts>
          <short_desc>Jasper is unabled to compile class for JSP</short_desc>
          <delta_ts>2021-08-28 19:38:10 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>tomcat</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stanislav Levin">slev</reporter>
          <assigned_to name="Stanislav Levin">slev</assigned_to>
          <cc>cas</cc>
    
    <cc>qa_viy</cc>
    
    <cc>serjigva</cc>
    
    <cc>slev</cc>
    
    <cc>viy</cc>
    
    <cc>xeno</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>202096</commentid>
    <comment_count>0</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2021-08-27 17:04:50 +0300</bug_when>
    <thetext>As of 9.0.50-alt1_2jpp11 tomcat + JSP of dogtag pki fails on
`curl -v -k https:/master1.ipa.test:8443/` with

```
27-Aug-2021 13:50:12.944 INFO [Catalina-utility-2] org.apache.catalina.core.Applicatio
nContext.log default: DefaultServlet.init:  input buffer size=2048, output buffer size
=2048
27-Aug-2021 13:50:34.427 INFO [main] org.apache.catalina.core.ApplicationContext.log d
efault: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
27-Aug-2021 13:51:06.726 SEVERE [https-jsse-nio-8443-exec-1] org.apache.catalina.core.
StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [
] threw exception [javax.servlet.ServletException: java.security.AccessControlExceptio
n: access denied (&quot;java.io.FilePermission&quot; &quot;/usr/share/pki/server/webapps/ROOT/WEB-INF
/classes/META-INF/services/javax.el.ExpressionFactory&quot; &quot;read&quot;)] with root cause
        java.security.AccessControlException: access denied (&quot;java.io.FilePermission&quot; 
&quot;/usr/share/pki/server/webapps/ROOT/WEB-INF/classes/META-INF/services/javax.el.Express
ionFactory&quot; &quot;read&quot;)
                at java.base/java.security.AccessControlContext.checkPermission(Access
ControlContext.java:472)
                at java.base/java.security.AccessController.checkPermission(AccessCont
roller.java:897)
                at java.base/java.lang.SecurityManager.checkPermission(SecurityManager
.java:322)
                at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:
661)
                at java.base/java.io.File.exists(File.java:817)
                at org.apache.catalina.webresources.DirResourceSet.getResource(DirReso
urceSet.java:105)

...
```

Dogtag PKI is run with an enabled security manager with its own policy(Catalina + PKI). Regarding tomcat, this policy declares:
```
grant codeBase &quot;file:/usr/share/java/tomcat/-&quot; {
        permission java.security.AllPermission;
};

grant codeBase &quot;file:/usr/share/java/tomcat-el-api.jar&quot; {
        permission java.security.AllPermission;
};

grant codeBase &quot;file:/usr/share/java/tomcat-servlet-api.jar&quot; {
        permission java.security.AllPermission;
};
```

Due to the changes in 9.0.50-alt1_2jpp11 (in particularly, maven ones) there are no longer /usr/share/java/tomcat-servlet-api.jar and /usr/share/java/tomcat-el-api.jar.

This bug is opened for reference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202103</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-08-28 12:08:15 +0300</bug_when>
    <thetext>tomcat-1:9.0.50-alt2_2jpp11 -&gt; sisyphus:

 Fri Aug 27 2021 Stanislav Levin &lt;slev@altlinux&gt; 1:9.0.50-alt2_2jpp11
 - Packaged missing jars (closes: #40819).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202108</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-08-28 19:31:24 +0300</bug_when>
    <thetext>только патч в tomcat-1:9.0.50-alt2_2jpp11
получился слишком радикальный. Вернуть дубликаты в lib не страшно, 
но вот если убрать их из jsp, servlet, js api, то это ломает много
пакетов. Навскидку заметил слом сборки в javahelp2 portlet-2.0-api resteasy.

Я соберу сборку, где сохраню дубликаты в lib, но верну их в *-api.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202109</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-08-28 19:38:10 +0300</bug_when>
    <thetext>Гм. в федоре в 9.0.52 те %exсlude уже откатили. Так что просто соберу их 9.0.52.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>