svn commit: r1470400 - /tomcat/trunk/webapps/docs/config/cluster-receiver.xml

2013-04-22 Thread violetagg
Author: violetagg
Date: Mon Apr 22 07:28:02 2013
New Revision: 1470400

URL: http://svn.apache.org/r1470400
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54872
https://issues.apache.org/bugzilla/show_bug.cgi?id=54872
Correct the range for the bindPort of the cluster receiver object.
Correct the example.

Modified:
tomcat/trunk/webapps/docs/config/cluster-receiver.xml

Modified: tomcat/trunk/webapps/docs/config/cluster-receiver.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/cluster-receiver.xml?rev=1470400&r1=1470399&r2=1470400&view=diff
==
--- tomcat/trunk/webapps/docs/config/cluster-receiver.xml (original)
+++ tomcat/trunk/webapps/docs/config/cluster-receiver.xml Mon Apr 22 07:28:02 
2013
@@ -80,9 +80,9 @@
 
   The listen port for incoming data. The default value is 
4000.
   To avoid port conflicts the receiver will automatically bind to a free 
port within the range of
-   port <= bindPort <= port+autoBind
+   port <= bindPort < port+autoBind
   So for example, if port is 4000, and autoBind is set to 10, then the 
receiver will open up
-  a server socket on the first available port in the range 4000-4100.
+  a server socket on the first available port in the range 4000-4009.
 
 
   Default value is 100.



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



svn commit: r1470403 - in /tomcat/tc7.0.x/trunk: ./ webapps/docs/changelog.xml webapps/docs/config/cluster-receiver.xml

2013-04-22 Thread violetagg
Author: violetagg
Date: Mon Apr 22 07:50:09 2013
New Revision: 1470403

URL: http://svn.apache.org/r1470403
Log:
Merged revision 1470400 from tomcat/trunk:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54872
Correct the range for the bindPort of the cluster receiver object.
Correct the example.

Modified:
tomcat/tc7.0.x/trunk/   (props changed)
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
tomcat/tc7.0.x/trunk/webapps/docs/config/cluster-receiver.xml

Propchange: tomcat/tc7.0.x/trunk/
--
  Merged /tomcat/trunk:r1470400

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1470403&r1=1470402&r2=1470403&view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Mon Apr 22 07:50:09 2013
@@ -77,6 +77,14 @@
   
 
   
+  
+
+  
+54872: Correct Cluster Receiver page of Tomcat
+documentation. (violetagg)
+  
+
+  
   
 
   

Modified: tomcat/tc7.0.x/trunk/webapps/docs/config/cluster-receiver.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/config/cluster-receiver.xml?rev=1470403&r1=1470402&r2=1470403&view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/config/cluster-receiver.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/config/cluster-receiver.xml Mon Apr 22 
07:50:09 2013
@@ -80,9 +80,9 @@
 
   The listen port for incoming data. The default value is 
4000.
   To avoid port conflicts the receiver will automatically bind to a free 
port within the range of
-   port <= bindPort <= port+autoBind
+   port <= bindPort < port+autoBind
   So for example, if port is 4000, and autoBind is set to 10, then the 
receiver will open up
-  a server socket on the first available port in the range 4000-4100.
+  a server socket on the first available port in the range 4000-4009.
 
 
   Default value is 100.



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



[Bug 54872] Receiver's value of autoBind is "less than", not "not greater than"

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54872

Violeta Georgieva  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
 OS||All

--- Comment #1 from Violeta Georgieva  ---
Thanks for the report.
Fixed in trunk and 7.0.x and will be included in 7.0.40 onwards.

-- 
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



buildbot failure in ASF Buildbot on tomcat-7-trunk

2013-04-22 Thread buildbot
The Buildbot has detected a new failure on builder tomcat-7-trunk while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-7-trunk/builds/1177

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/tc7.0.x/trunk] 1470403
Blamelist: violetagg

BUILD FAILED: failed compile_1

sincerely,
 -The Buildbot





svn commit: r1470435 - in /tomcat/trunk/java/org/apache/tomcat/util/http/fileupload: FileItem.java disk/DiskFileItem.java

2013-04-22 Thread markt
Author: markt
Date: Mon Apr 22 10:33:43 2013
New Revision: 1470435

URL: http://svn.apache.org/r1470435
Log:
Clean-up: Remove unnecessary code.

Modified:
tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java

tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java?rev=1470435&r1=1470434&r2=1470435&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java Mon 
Apr 22 10:33:43 2013
@@ -20,7 +20,6 @@ import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.io.Serializable;
 import java.io.UnsupportedEncodingException;
 
 /**
@@ -46,7 +45,7 @@ import java.io.UnsupportedEncodingExcept
  * @version $Id$
  * @since 1.3 additionally implements FileItemHeadersSupport
  */
-public interface FileItem extends Serializable, FileItemHeadersSupport {
+public interface FileItem extends FileItemHeadersSupport {
 
 // --- Methods from javax.activation.DataSource
 

Modified: 
tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java?rev=1470435&r1=1470434&r2=1470435&view=diff
==
--- 
tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java 
(original)
+++ 
tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java 
Mon Apr 22 10:33:43 2013
@@ -24,8 +24,6 @@ import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
 import java.io.OutputStream;
 import java.io.UnsupportedEncodingException;
 import java.util.Map;
@@ -78,11 +76,6 @@ public class DiskFileItem
 // - Manifest constants
 
 /**
- * The UID to use when serializing this instance.
- */
-private static final long serialVersionUID = 2237570099615271025L;
-
-/**
  * Default content charset to be used when no explicit charset
  * parameter is provided by the sender. Media subtypes of the
  * "text" type are defined to have a default charset value of
@@ -157,11 +150,6 @@ public class DiskFileItem
 private transient File tempFile;
 
 /**
- * File to allow for serialization of the content of this item.
- */
-private File dfosFile;
-
-/**
  * The file items headers.
  */
 private FileItemHeaders headers;
@@ -638,55 +626,6 @@ public class DiskFileItem
   Boolean.valueOf(isFormField()), getFieldName());
 }
 
-// -- Serialization methods
-
-/**
- * Writes the state of this object during serialization.
- *
- * @param out The stream to which the state should be written.
- *
- * @throws IOException if an error occurs.
- */
-private void writeObject(ObjectOutputStream out) throws IOException {
-// Read the data
-if (dfos.isInMemory()) {
-cachedContent = get();
-} else {
-cachedContent = null;
-dfosFile = dfos.getFile();
-}
-
-// write out values
-out.defaultWriteObject();
-}
-
-/**
- * Reads the state of this object during deserialization.
- *
- * @param in The stream from which the state should be read.
- *
- * @throws IOException if an error occurs.
- * @throws ClassNotFoundException if class cannot be found.
- */
-private void readObject(ObjectInputStream in)
-throws IOException, ClassNotFoundException {
-// read values
-in.defaultReadObject();
-
-OutputStream output = getOutputStream();
-if (cachedContent != null) {
-output.write(cachedContent);
-} else {
-FileInputStream input = new FileInputStream(dfosFile);
-IOUtils.copy(input, output);
-dfosFile.delete();
-dfosFile = null;
-}
-output.close();
-
-cachedContent = null;
-}
-
 /**
  * Returns the file item headers.
  * @return The file items headers.



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



svn commit: r1470437 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/tomcat/util/http/fileupload/ java/org/apache/tomcat/util/http/fileupload/FileItem.java java/org/apache/tomcat/util/http/fileupload/d

2013-04-22 Thread markt
Author: markt
Date: Mon Apr 22 10:35:10 2013
New Revision: 1470437

URL: http://svn.apache.org/r1470437
Log:
Clean-up: Remove unnecessary code.

Modified:
tomcat/tc7.0.x/trunk/   (props changed)
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/   (props 
changed)

tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java

tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java

Propchange: tomcat/tc7.0.x/trunk/
--
  Merged /tomcat/trunk:r1470435

Propchange: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/
--
  Merged /tomcat/trunk/java/org/apache/tomcat/util/http/fileupload:r1470435

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java?rev=1470437&r1=1470436&r2=1470437&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java 
(original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/FileItem.java 
Mon Apr 22 10:35:10 2013
@@ -20,7 +20,6 @@ import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.io.Serializable;
 import java.io.UnsupportedEncodingException;
 
 /**
@@ -46,7 +45,7 @@ import java.io.UnsupportedEncodingExcept
  * @version $Id$
  * @since 1.3 additionally implements FileItemHeadersSupport
  */
-public interface FileItem extends Serializable, FileItemHeadersSupport {
+public interface FileItem extends FileItemHeadersSupport {
 
 // --- Methods from javax.activation.DataSource
 

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java?rev=1470437&r1=1470436&r2=1470437&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java
 (original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java
 Mon Apr 22 10:35:10 2013
@@ -24,8 +24,6 @@ import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
 import java.io.OutputStream;
 import java.io.UnsupportedEncodingException;
 import java.util.Map;
@@ -78,11 +76,6 @@ public class DiskFileItem
 // - Manifest constants
 
 /**
- * The UID to use when serializing this instance.
- */
-private static final long serialVersionUID = 2237570099615271025L;
-
-/**
  * Default content charset to be used when no explicit charset
  * parameter is provided by the sender. Media subtypes of the
  * "text" type are defined to have a default charset value of
@@ -157,11 +150,6 @@ public class DiskFileItem
 private transient File tempFile;
 
 /**
- * File to allow for serialization of the content of this item.
- */
-private File dfosFile;
-
-/**
  * The file items headers.
  */
 private FileItemHeaders headers;
@@ -638,55 +626,6 @@ public class DiskFileItem
   Boolean.valueOf(isFormField()), getFieldName());
 }
 
-// -- Serialization methods
-
-/**
- * Writes the state of this object during serialization.
- *
- * @param out The stream to which the state should be written.
- *
- * @throws IOException if an error occurs.
- */
-private void writeObject(ObjectOutputStream out) throws IOException {
-// Read the data
-if (dfos.isInMemory()) {
-cachedContent = get();
-} else {
-cachedContent = null;
-dfosFile = dfos.getFile();
-}
-
-// write out values
-out.defaultWriteObject();
-}
-
-/**
- * Reads the state of this object during deserialization.
- *
- * @param in The stream from which the state should be read.
- *
- * @throws IOException if an error occurs.
- * @throws ClassNotFoundException if class cannot be found.
- */
-private void readObject(ObjectInputStream in)
-throws IOException, ClassNotFoundException {
-// read values
-in.defaultReadObject();
-
-OutputStream output = getOutputStream();
-if (cachedContent != null) {
-output.write(cachedContent);
-} else {
-FileInput

Re: [VOTE] Tighten up wiki security to reduce spam

2013-04-22 Thread Tim Funk
> [X] +1 Make it so

I'm surprised not to see more discussion ... but it could be due to the
word spam in the subject line. So many folks (maybe including me) aren't
seeing any of the replies. (or possibly the original vote request so they
are unable to reply/vote)

-Tim



On Fri, Apr 19, 2013 at 10:49 AM, Mark Thomas  wrote:

> On 19/04/2013 15:49, Mark Thomas wrote:
> > Should the changes described in [1] be applied to the Tomcat wiki?
> > [X] +1 Make it so
> > [ ]  0 No opinion
> > [ ] -1 I object to this proposed change because...
>
> My vote for the record.
>
> Mark
>
> > [1]
> >
> http://wiki.apache.org/general/OurWikiFarm#per_wiki_access_control_-_tighten_your_wiki_just_a_little.2C_benefit_just_a_lot
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>


Re: [VOTE] Tighten up wiki security to reduce spam

2013-04-22 Thread Ognjen Blagojevic

[X] +1 Make it so

It is nice not to have any obstacles to contribute to wiki, but then 
again, spam on the wiki really started to be annoying.


-Ognjen


On 22.4.2013 13:44, Tim Funk wrote:

[X] +1 Make it so


I'm surprised not to see more discussion ... but it could be due to the
word spam in the subject line. So many folks (maybe including me) aren't
seeing any of the replies. (or possibly the original vote request so they
are unable to reply/vote)

-Tim



On Fri, Apr 19, 2013 at 10:49 AM, Mark Thomas  wrote:


On 19/04/2013 15:49, Mark Thomas wrote:

Should the changes described in [1] be applied to the Tomcat wiki?
[X] +1 Make it so
[ ]  0 No opinion
[ ] -1 I object to this proposed change because...


My vote for the record.

Mark


[1]


http://wiki.apache.org/general/OurWikiFarm#per_wiki_access_control_-_tighten_your_wiki_just_a_little.2C_benefit_just_a_lot


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







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



Re: [VOTE] Tighten up wiki security to reduce spam

2013-04-22 Thread Rainer Jung
On 19.04.2013 16:49, Mark Thomas wrote:
> Should the changes described in [1] be applied to the Tomcat wiki?
> [X] +1 Make it so

+1

Rainer


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



Re: [VOTE] Tighten up wiki security to reduce spam

2013-04-22 Thread Violeta Georgieva
2013/4/19 Mark Thomas wrote:
>
> On 19/04/2013 15:49, Mark Thomas wrote:
> > Should the changes described in [1] be applied to the Tomcat wiki?
> > [X] +1 Make it so
> > [ ]  0 No opinion
> > [ ] -1 I object to this proposed change because...
>

+1


[Tomcat Wiki] Trivial Update of "CarenOtoo" by CarenOtoo

2013-04-22 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "CarenOtoo" page has been changed by CarenOtoo:
http://wiki.apache.org/tomcat/CarenOtoo

New page:
Not much to write about myself really.<>
Great to be a part of apache.org.<>
I just hope Im useful in one way .<>
<>
[[http://rachat-credit.financeimmo.com/regroupement_de_credit/exemple.pdf|rachat
 de credit en belgique]]

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



[Bug 54859] undeployOldVersions files under work

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

--- Comment #2 from Joe Knudsen  ---
I will gather additional information.  I am attempting to use the feature to do
continous integration and deployment on Grails builds.   At times builds fail
due to problems with the build or running out of Perm memory.  These could be
what is causing the undeploy to not work or partially work by just removing the
war file and leaving the work/Catalina remaining.

-- 
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 54859] undeployOldVersions files under work

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Violeta Georgieva  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

-- 
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



[Tomcat Wiki] Update of "LocalBadContent" by KonstantinKolinko

2013-04-22 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by KonstantinKolinko:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=143&rev2=144

  fcpages\.com
  feeltime\.cn
  feeltime\.com
+ financeimmo\.com
  fleshlight12\.tumblr\.com
  forexrobot
  freecities\.com

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



[Tomcat Wiki] Trivial Update of "JustineFr" by JustineFr

2013-04-22 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "JustineFr" page has been changed by JustineFr:
http://wiki.apache.org/tomcat/JustineFr

New page:
Fruta una vez ms, la fruta es obesos que estn experimentando importantes 
problemas mdicos debido a la la obesidad.<>
Estas dietas se llevan a cabo bajo la estrecha supervisin de los mdicos. 
[[http://quemandoygozando-gratis.com/|Quemando Y Gozando Pdf]] Oggi si parla 
molto di benessere e di dieta a zona. Indubbiamente una investigacin. Esto le 
dir si alguno de los ingredientes son dainos.<>
Si es as, entonces debe permanecer lejos de ellos.<>
<>
2 cucharadas de jugo de radicalmente, se concentran en un slo tipo de alimento, 
por ejemplo, la dieta de la sopa de repollo. 
[[http://quemandoygozando-gratis.com/|Quemando Y Gozando Gratis]] 1 libra de 
zanahorias obesos que estn experimentando importantes problemas mdicos debido a 
la la obesidad.<>
<>
Estas dietas se llevan a cabo bajo la estrecha supervisin de los mdicos.<>
<>
En segundo lugar ... despus de recibir su informe gratis, informacin sobre cul 
es la mejor dieta para perder kilos rapido, Revisa la siguiente informacin. 
[[http://quemandogozandogratis.com/|Quemando Y Gozando Libro]] El uso de 
suplementos de dieta junto con las hierbas para bajar de peso puede ser un 
proceso potencialmente peligroso.<>
Hay base com fruta ou algo leve e nutritivo.

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



Re: and security constraints

2013-04-22 Thread Jeremy Boynes
On Apr 21, 2013, at 11:37 PM, David Jencks  wrote:

> On Apr 21, 2013, at 3:56 PM, Jeremy Boynes  wrote:
> 
>> On Apr 19, 2013, at 11:04 PM, David Jencks  wrote:
>>> IMO you have misinterpreted roles in the ee specs.  The specs including the 
>>> servlet spec define application roles and base the declarative security 
>>> constraints on them.  Then you can map strings that bits of the application 
>>> like, at least ejbs and servlets, to these declared security roles using a 
>>> security-role-ref.  The role-link has to be one of the declared application 
>>> roles.  For web apps the security-role-ref is defined on servlets.  The 
>>> application roles no matter where defined are scoped to the entire 
>>> application not just one web app or web fragment.  If a security-role-ref 
>>> is not defined for a string, and you call isUserInRole with that string, 
>>> the string is assumed to be a defined application role.
>> 
>> Mark does bring up a gap here though. Before 3.0, the only reference to a 
>> role from code would be in the parameter value passed to isUserInRole(), and 
>> the assembler was responsible for listing all of those in web.xml; the 
>> deployer was responsible for linking them to actual roles in  
>> elements, and then linking those to groups/principals in the authorization 
>> system in a container-specific manner. Declarative security 
>> (security-constraint/auth-constraint) did not require a linkage mechanism as 
>> the deployer could modify the value in the  declaration in 
>> web.xml. With 3.0 annotations, however, the auth-constraint is now declared 
>> in code and the deployer has no mechanism to link its roleNames() to an 
>> actual role.
> 
> Not quite following you here.  I thought you'd declare all your roles using 
> the @DeclareRoles annotation or in @AllowRoles inside constraints.  These are 
> equivalent to  elements in web.xml.  If for some reason you 
> don't like the role names in the annotations you can always override them in 
> web.xml just like you can override other non-cdi annotations.  Otherwise the 
> deployer can link the principal names to the role names just like with 
> web.xml.

I may be wrong, but I've viewed @DeclareRoles as more akin to 
 in that is declaring a role reference I make from within 
code in a discoverable way; without annotation, an assembler or deployer would 
need to rely on documentation supplied with the code to know this reference was 
made. That's different to @RolesAllowed et al. which are specifying the 
deployment concern of what roles are permitted to access the servlet.

Or, putting it another way, @DeclaresRole is metadata describing what the 
implementation code does whereas @RolesAllowed is configuration about the how 
the code should be used. Changing the role reference described by @DeclaresRole 
requires modifying the code that calls isUserInRole() which is outside the 
assembly/deployment role.

>> Option b) sounds like a potential solution but as you say that is not 
>> something the spec currently allows. The spec could be extended to allow 
>> this, and I think that would even be a compatible change given the existing 
>> requirement for  to default to a  with the 
>> same name if no explicit link is specified.
> 
> How is this different from the existing possibility to define a proprietary 
> mapping between principal names and application role names?

It's a portable way for an assembler creating a web-application from components 
provided by different suppliers to link the roles declared in the annotations 
(whose names are defined by the component providers) to a common set of 
application roles (defined by the assembler). The deployer then maps one set of 
application roles to principal names in a proprietary way.

Its trying to address the situation where two components from different 
providers both specify @RolesAllowed("user") but mean different things by 
"user," or where one defines "user" and the other defines "customer" and the 
assembler wants them to map to the same application role. 

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



[Tomcat Wiki] Update of "LocalBadContent" by ChuckCaldarale

2013-04-22 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by ChuckCaldarale:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=144&rev2=145

  goldbetreview
  gradhome\.com
  grandnationalpro\.com
+ quemandoygozando-gratis\.com
+ quemandoygozandogratis\.com
  guruchetra
  hbgm\.cn
  hfire\.cn

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



[Bug 54693] Add a validationQueryTimeout property

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54693

donnchadh  changed:

   What|Removed |Added

 CC||donnch...@gmail.com

-- 
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 54859] undeployOldVersions files under work

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

--- Comment #3 from Joe Knudsen  ---
Below is the logs of a simple Grails application failing to delete from
Catalina/localhost:

INFO: Deploying web application archive
E:\Apache\Tomcat-7.0.39_7600_x64\webapps\dfpeapi##2974.war
Apr 22, 2013 4:53:26 PM org.apache.catalina.startup.HostConfig checkUndeploy
INFO: Undeploying old version of context [/dfpeapi##2973] which has no active
session
Apr 22, 2013 4:53:26 PM org.apache.catalina.startup.HostConfig
deleteRedeployResources
INFO: Undeploying context [/dfpeapi##2973]
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@1814786f]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@6e8362dc]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@73cf9232]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@40874c04]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973\WEB-INF\lib]
could not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973\WEB-INF]
could not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973] could
not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar delete
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973] could
not be completely deleted. The presence of the remaining files may cause
problems

-- 
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 54859] undeployOldVersions files under work

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Joe Knudsen  changed:

   What|Removed |Added

Version|7.0.37  |7.0.39

-- 
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 54859] undeployOldVersions files under work

2013-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Mark Thomas  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Mark Thomas  ---
That is an app / Grails problem, not a Tomcat one.

-- 
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



[Tomcat Wiki] Trivial Update of "Female_Bloating_And_The_Implication_On_Weight_Loss" by ThurmanHo

2013-04-22 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "Female_Bloating_And_The_Implication_On_Weight_Loss" page has been changed 
by ThurmanHo:
http://wiki.apache.org/tomcat/Female_Bloating_And_The_Implication_On_Weight_Loss

New page:
Balance is essential, locate the magic number that offers you the right amount 
of food and exercising. Going slow and steady also permits you to observe your 
personal body, sense the feasible alterations that take place. All of these 
little firms will assure to supply the greatest program, but it is up to you to 
choose the one that meets your demands. Losing weight may possibly be achieved 
by eating healthier foods, decreasing the everyday caloric intake, and 
escalating the daily expenditure of energy through exercising. Its antioxidants 
hold cholesterol from oxidizing and forming arterial plaques. two days is best 
for a full physique rest and recovery.<>
Yoga alters your taste of food naturally, without having deprivation or any 
effort. This is the manufacturer's promoting gimmick. But the process of 
gastric bypass surgery or gastric weight loss surgery is advantageous for those 
obesity sufferers can readily make modifications in their life style. Some of 
the diseases caused by getting overweight are Variety 2 diabetes, stroke, 
higher blood pressure, and some cancers. A health care provider can help a 
individual choose the program that is right for him. This shake contains zero 
fat and will give you a increase of power. If you should have a bedtime snack, 
make it 2 or 3 oz.<>
To be capable to know what you want to will consist of understanding the a 
variety of sorts of air conditioner methods available in you need to, how they 
carry out and exactly where they fit greatest. This would also be your 
potential so it has to be pity among the try it. Be specific that you drink 
sufficient water daily. Shedding bodyweight calls for a huge lot of really 
difficult work. People can easily make your life somewhat less difficult by 
using an hunger suppressor just like 
[[http://capsiplexreviewsforslimmers.com/capsiplex-review/|Appetite 
Suppressants]] to help take the edge off The number of acupuncture remedies 
necessary, to accomplish the optimal weight loss effect, is primarily based on 
the folks health troubles discovered following these examinations. There are 
many swift weight loss centers that support over-weight men and women attain a 
steady quick weight loss impact by way of the use of aerobic activities with 
the support of exercising machines.<>
You can skip weight loss troubles by avoiding feeling miserable from following 
fad diet regime that starves you; from unhealthy way of life that dents your 
efforts and from emotional eating that wastes all your hard function. The 
Chinese herbs utilised for weight loss operate in two techniques. Diabetes 
mellitus is a situation in which the quantity of glucose (sugar) in the blood 
is also high since the physique can not use it appropriately. Smucker, Celeste 
M. You can also customize your workouts to your self. We won't be specific in 
terms of what aerobics program to execute.<>
With so significantly weight-loss info out there, it's hard to make sense of it 
all and distinguish truth from fiction. Any very good weight loss diet regime 
often to be regarded as later. Attempting to shed fat or achieve muscle by way 
of workout have to be coupled with suitable nutrition. So what are the diet 
plan tips? One particular of the causes why it is such a potent weight loss 
agent is that it operates by means of a variety of mechanisms, like growing 
levels of norepinephrine, epinephrine, and dopamine, and stimulating both alpha 
and beta adrenoreceptors. Some folks mistakenly think that skipping breakfast 
saves calories and helps the pounds come off far more rapidly. Take a stroll to 
the park or the corner store rather than obtaining in the vehicle and pull a 
wagon or push a stroller while you're at it.<>
You should join an on-line support group or forum that was created especially 
for men and women that are trying to battle weight troubles. Throw a dance 
party, chase your little ones about the yard, or take your dog for a walk about 
your neighborhood. Fourthly, decrease the quantity of meals intake by slowing 
the speed of meals intake Rapidly consuming individuals often unknowingly 
consume a lot of meals and generally only realize they have over consuming 
following half way consuming. There should be a reason why some struggle to 
shed weight although for other people it seems like the weight just falls 
proper off. They are medicine. Examine the claims and independent assessment 
and make a decision for your self.<>
The next step for the researchers in the study reported here must be to 
discover out how powerful weight loss can be, for non-cyclers as nicely as for 
moderate to severe cyclers, from a much more substantial protocol than the 

svn commit: r1470764 - /tomcat/trunk/modules/jdbc-pool/

2013-04-22 Thread olamy
Author: olamy
Date: Tue Apr 23 00:46:45 2013
New Revision: 1470764

URL: http://svn.apache.org/r1470764
Log:
ignore idea files

Modified:
tomcat/trunk/modules/jdbc-pool/   (props changed)

Propchange: tomcat/trunk/modules/jdbc-pool/
--
--- svn:ignore (original)
+++ svn:ignore Tue Apr 23 00:46:45 2013
@@ -3,3 +3,6 @@ bin
 build.properties
 includes
 output
+target
+*.iml
+.idea



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



svn commit: r1470765 - /tomcat/trunk/modules/jdbc-pool/pom.xml

2013-04-22 Thread olamy
Author: olamy
Date: Tue Apr 23 00:50:42 2013
New Revision: 1470765

URL: http://svn.apache.org/r1470765
Log:
fix maven build for jdbc-pool

Modified:
tomcat/trunk/modules/jdbc-pool/pom.xml

Modified: tomcat/trunk/modules/jdbc-pool/pom.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/pom.xml?rev=1470765&r1=1470764&r2=1470765&view=diff
==
--- tomcat/trunk/modules/jdbc-pool/pom.xml (original)
+++ tomcat/trunk/modules/jdbc-pool/pom.xml Tue Apr 23 00:50:42 2013
@@ -67,7 +67,7 @@
 
   junit
   junit
-  3.8.1
+  4.11
   test
 
 
@@ -89,8 +89,8 @@
 org.apache.maven.plugins
 maven-compiler-plugin
 
-  1.6
-  1.6
+  1.7
+  1.7
   true
   true
   true



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



Re: [VOTE] Tighten up wiki security to reduce spam

2013-04-22 Thread Olivier Lamy
+1

2013/4/20 Mark Thomas :
> Given the recent increase in Wiki Spam (it has increased generally
> across the ASF as well) I think it is time to apply the changes
> described in [1].
>
> On the plus side, it should eliminate spam.
>
> On the down side, legitimate users that want to make changes need to ask
> for access first.
>
> I have said it before but I think it is worth repeating. Adding entries
> to LocalBadContent and deleting the spam is ineffective. The spam has
> already entered our mail archive at that point and has been mirrored
> around the world which is exactly what the spammers want.
>
>
> Infra requires that the community agree to these changes before infra
> will apply them - hence this vote.
>
> Should the changes described in [1] be applied to the Tomcat wiki?
> [ ] +1 Make it so
> [ ]  0 No opinion
> [ ] -1 I object to this proposed change because...
>
>
> Mark
>
>
> [1]
> http://wiki.apache.org/general/OurWikiFarm#per_wiki_access_control_-_tighten_your_wiki_just_a_little.2C_benefit_just_a_lot
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

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