You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/12/14 10:42:21 UTC
DO NOT REPLY [Bug 37898] New: -
FilePolicyManager infinite loop
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37898>.
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=37898
Summary: FilePolicyManager infinite loop
Product: Lenya
Version: 1.4
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Access Control
AssignedTo: dev@lenya.apache.org
ReportedBy: gregor.imboden@wyona.com
The following code in FilePolicyManager.java leads to an infinite loop
when an url contains other characters than [\w-._~].
//The live area should be restrictive and will use the policy belonging
to self-or-ancestor
if (url.startsWith("/live")) {
while (url.indexOf("/") >= 0) {
policy = buildSubtreePolicy(controller, url+"/");
policies.add(policy);
if(!policy.isEmpty()) {
url="";
} else {
url=url.replaceFirst("/[\\w\\-\\.\\_\\~]*$","");
}
}
}
--
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: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org