Patches item #1055650, was opened at 2004-10-27 15:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=1055650&group_id=22866

Category: JBossSX
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Kinser (skinser)
Assigned to: Nobody/Anonymous (nobody)
Summary: JACC fix for defect 1054897

Initial Comment:
Here is a fix for defect 1054897. The implies methods
in the WebResourcePermission and WebUserDataPermission
classes are modified to check for an empty httpMethods
in addition to a null httpMethods instance variable.
The diffs are listed below and are included in a zip
file. I successfully tested this fix against the
example webapp included in the defect.



--- WebResourcePermissionOld.java       2004-07-19
23:58:43.000000000 -0600
+++ WebResourcePermissionNew.java       2004-10-27
14:31:16.500000000 -0600
@@ -268,7 +268,7 @@
       if( implies == true )
       {
          // Check the http methods
-         if( httpMethods != null )
+         if( httpMethods != null && httpMethods.size()
> 0 )
             implies =
httpMethods.containsAll(perm.httpMethods);
       }




--- WebUserDataPermissionOld.java       2004-07-19
23:59:00.000000000 -0600
+++ WebUserDataPermissionNew.java       2004-10-27
14:31:16.484375000 -0600
@@ -312,7 +312,7 @@
       if( implies == true )
       {
          // Check the http methods
-         if( httpMethods != null )
+         if( httpMethods != null && httpMethods.size()
> 0 )
             implies =
httpMethods.containsAll(perm.httpMethods);
          // Check the transport guarentee
          if( implies == true && transportType != null )


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=1055650&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to