[Bug 55019] New: failed to compile under security manager

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55019

Bug ID: 55019
   Summary:  failed to
compile under security manager
   Product: Tomcat 6
   Version: unspecified
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
  Assignee: dev@tomcat.apache.org
  Reporter: jfcl...@gmail.com

Created attachment 30328
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30328&action=edit
Patch to fix the problem

With 2 JSP on including the other with 
you get:
java.lang.RuntimePermission accessClassInPackage.org.apache.coyote.http11 when
calling the jsp the first time subsequent requests are working.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55019] failed to compile under security manager

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55019

--- Comment #1 from jfclere  ---
Created attachment 30329
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30329&action=edit
Simple webapp to show the problem

extract jar in webapp
start tomcat
bin/catalina.sh start -security
curl -v curl -v http://localhost:8080/smtest/test.jsp
error
curl -v curl -v http://localhost:8080/smtest/test.jsp
ok

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1486638 - /tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java

2013-05-27 Thread remm
Author: remm
Date: Mon May 27 15:15:32 2013
New Revision: 1486638

URL: http://svn.apache.org/r1486638
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=55019
Preload the Constants class during connector init.

Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java?rev=1486638&r1=1486637&r2=1486638&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java Mon 
May 27 15:15:32 2013
@@ -38,6 +38,11 @@ import org.apache.tomcat.util.res.String
 
 public abstract class AbstractOutputBuffer implements OutputBuffer {
 
+public AbstractOutputBuffer() {
+// Cause loading of Constants
+int foo = Constants.HTTP_11_BYTES[0];
+}
+
 // - Instance Variables
 
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1486641 - /tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java

2013-05-27 Thread remm
Author: remm
Date: Mon May 27 15:36:04 2013
New Revision: 1486641

URL: http://svn.apache.org/r1486641
Log:
Revert: the issue is not reproduceable on trunk (or 7) without the fix, 
although I am not sure where the Constants class is actually loaded.

Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java?rev=1486641&r1=1486640&r2=1486641&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java Mon 
May 27 15:36:04 2013
@@ -38,11 +38,6 @@ import org.apache.tomcat.util.res.String
 
 public abstract class AbstractOutputBuffer implements OutputBuffer {
 
-public AbstractOutputBuffer() {
-// Cause loading of Constants
-int foo = Constants.HTTP_11_BYTES[0];
-}
-
 // - Instance Variables
 
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1486647 - /tomcat/tc6.0.x/trunk/STATUS.txt

2013-05-27 Thread jfclere
Author: jfclere
Date: Mon May 27 15:51:55 2013
New Revision: 1486647

URL: http://svn.apache.org/r1486647
Log:
Add https://issues.apache.org/bugzilla/show_bug.cgi?id=55019

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=1486647&r1=1486646&r2=1486647&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Mon May 27 15:51:55 2013
@@ -37,6 +37,30 @@ PATCHES PROPOSED TO BACKPORT:
   +1: markt
   -1:
 
+* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55019
+  patch in the issue.
+  +1: jfclere
+  -1:
+ 
+-
+ PATCHES/ISSUES THAT ARE STALLED
+ 
+ * Backport JSP unloading patch (BZ48358).
+Index: java/org/apache/coyote/http11/InternalOutputBuffer.java
+===
+--- java/org/apache/coyote/http11/InternalOutputBuffer.java(revision 
1486646)
 java/org/apache/coyote/http11/InternalOutputBuffer.java(working copy)
+@@ -79,6 +79,9 @@
+ committed = false;
+ finished = false;
+ 
++// Cause loading of Constants
++int foo = Constants.HTTP_11_BYTES[0];
++
+ }
+ 
+ 
+
 
 PATCHES/ISSUES THAT ARE STALLED
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55019] failed to compile under security manager

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55019

Konstantin Kolinko  changed:

   What|Removed |Added

  Attachment #30328|0   |1
   is patch||

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1486692 - /tomcat/tc6.0.x/trunk/STATUS.txt

2013-05-27 Thread kkolinko
Author: kkolinko
Date: Mon May 27 18:27:21 2013
New Revision: 1486692

URL: http://svn.apache.org/r1486692
Log:
Remove a copy of a proposed patch from the STATUS file. It is the same as the 
one attached to the Bugzilla issue.
Add link to the attachment.
Object.

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=1486692&r1=1486691&r2=1486692&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Mon May 27 18:27:21 2013
@@ -38,28 +38,15 @@ PATCHES PROPOSED TO BACKPORT:
   -1:
 
 * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55019
+  Fix an exception that occurs when accessing certain JSP page when running
+  with SecurityManager
   patch in the issue.
+  https://issues.apache.org/bugzilla/attachment.cgi?id=30328
   +1: jfclere
+  -0: kkolinko: Why this code is in a constructor? One needs to execute it
+  once, so a static{} initializer block is the place to do it, or better
+  add it to this class: org.apache.catalina.security.SecurityClassLoad
   -1:
- 
--
- PATCHES/ISSUES THAT ARE STALLED
- 
- * Backport JSP unloading patch (BZ48358).
-Index: java/org/apache/coyote/http11/InternalOutputBuffer.java
-===
 java/org/apache/coyote/http11/InternalOutputBuffer.java(revision 
1486646)
-+++ java/org/apache/coyote/http11/InternalOutputBuffer.java(working copy)
-@@ -79,6 +79,9 @@
- committed = false;
- finished = false;
- 
-+// Cause loading of Constants
-+int foo = Constants.HTTP_11_BYTES[0];
-+
- }
- 
- 
 
 
 PATCHES/ISSUES THAT ARE STALLED



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 54928] IllegalStateException: Calling [asyncError()] is not valid for a request with Async state [COMPLETING]

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54928

Mark Thomas  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 54931] Updates to windows-service-howto to include support for installing multiple windows services

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54931

Mark Thomas  changed:

   What|Removed |Added

  Attachment #30257|0   |1
   is patch||
  Attachment #30257|application/octet-stream|text/plain
  mime type||

--- Comment #1 from Mark Thomas  ---
Comment on attachment 30257
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30257
Diff file for windows-service-howto

Fix MIME type

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 54931] Updates to windows-service-howto to include support for installing multiple windows services

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54931

--- Comment #2 from Mark Thomas  ---
The HTML is not the source. The source is the XML. The HTML is generated from
the source.

Please could you provide your suggested changes as a patch in diff - u format
against this file:
http://svn.apache.org/repos/asf/tomcat/trunk/webapps/docs/windows-service-howto.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 54931] Updates to windows-service-howto to include support for installing multiple windows services

2013-05-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54931

--- Comment #3 from ch...@derham.me.uk ---
Created attachment 30331
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30331&action=edit
xml diff file as requested

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org