svn commit: r386829 - /tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java

2006-03-18 Thread jfclere
Author: jfclere
Date: Sat Mar 18 01:23:48 2006
New Revision: 386829

URL: http://svn.apache.org/viewcvs?rev=386829&view=rev
Log:
Rollback commit... Searching for a better solution.

Modified:

tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java

Modified: 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
URL: 
http://svn.apache.org/viewcvs/tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java?rev=386829&r1=386828&r2=386829&view=diff
==
--- 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
 (original)
+++ 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
 Sat Mar 18 01:23:48 2006
@@ -372,8 +372,7 @@
 * Determine the page encoding from the page directive, unless it's
 * specified via JSP config.
 */
-   if (jspConfigPageEnc != null)
-   sourceEnc = jspConfigPageEnc;
+   sourceEnc = jspConfigPageEnc;
if (sourceEnc == null) {
sourceEnc = getPageEncodingForJspSyntax(jspReader, startMark);
if (sourceEnc == null) {



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Missing support from busy worker at jk_lb_worker.find_best_bydomain

2006-03-18 Thread Peter Rossbach

Hi,

Find that method find_best_bydomain not suppoprt the new busy lb  
strategy!


---
L252 jk_lb_worker.c

   /* Take into calculation only the workers that are
 * not in error state, stopped or not disabled.
 */
if (JK_WORKER_USABLE(p->lb_workers[i].s)) {
if (p->lbmethod == JK_LB_BYREQUESTS) {
p->lb_workers[i].s->lb_value += p->lb_workers[i].s- 
>lb_factor;

total_factor += p->lb_workers[i].s->lb_factor;
if (!candidate || p->lb_workers[i].s->lb_value >  
candidate->s->lb_value)

candidate = &p->lb_workers[i];
}
else {
mytraffic = (p->lb_workers[i].s->transferred +
 p->lb_workers[i].s->readed ) / p- 
>lb_workers[i].s->lb_factor;

if (!candidate || mytraffic < curmin) {
candidate = &p->lb_workers[i];
curmin = mytraffic;
}
}
}


=

Can we use this at line
L:351
   mytraffic = (p->lb_workers[i].s->transferred +
 p->lb_workers[i].s->readed ) / p- 
>lb_workers[i].s->lb_factor;


instead
   mytraffic = (p->lb_workers[i].s->transferred/p->lb_workers 
[i].s->lb_factor) +
(p->lb_workers[i].s->readed/p->lb_workers 
[i].s->lb_factor);


Better we extract the small redundant value calculations at separate  
functions!


Regards Peter





Re: DO NOT REPLY [Bug 37245] - Slow host in load balancer under heavy load issue

2006-03-18 Thread ZENIT English

UNSUBSCRIBE

[EMAIL PROTECTED] wrote:


DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37245


[EMAIL PROTECTED] changed:

  What|Removed |Added

Status|NEW |RESOLVED
Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 07:56 ---
Commited #36138.
It will be part of the next 1.2.16

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39021] - Support authentication only access

2006-03-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39021





--- Additional Comments From [EMAIL PROTECTED]  2006-03-18 18:21 ---
Created an attachment (id=17916)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17916&action=view)
Example enum type class for the all roles mode behavior


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39021] - Support authentication only access

2006-03-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39021





--- Additional Comments From [EMAIL PROTECTED]  2006-03-18 18:23 ---
Created an attachment (id=17917)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17917&action=view)
Realm.hasResourcePermission override fragment example


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39021] - Support authentication only access

2006-03-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39021





--- Additional Comments From [EMAIL PROTECTED]  2006-03-18 18:27 ---
The jboss embedded tomcat Realm implementation has added support for the 
following modes of handling the all roles auth-constraint:

+ strict = Use the strict servlet spec interpretation which requires that the 
user have one of the web-app/security-role/role-name
+ authOnly = Allow any authenticated user
+ strictAuthOnly = Allow any authenticated user only if there are no web-app/
security-roles specified

The attachements illustrate the logic used in the Realm.hasResourcePermission 
override.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]