You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Roman Novak <r....@iqsoft.at> on 2004/09/17 09:04:27 UTC
Projector 0.1: Code Fixes needed to run (my experience)
Hi,
I am posting my experiences with the first version of Projector. I needed to apply code fixes in two places (see below).
I ran Projector0.1 against an Oracle store in JBoss.
Apart from that I had to upload a few Icons to my admin/images section: logout.gif, button_cancel.png, button_ok.png (the latter two of them I found in the CVS)
Projector looks interesting and helps a little already :) I am looking forward to ACL administration (hopefully :)
Good luck
Roman
Class DateValueDescriptor (problem with empty values)
-------------------------------------------
String valueAsString = StringValueDescriptor.ANY.valueOf(value, null).toString();
if (valueAsString.length() > 0) {
try {
date = new Date(Long.valueOf(valueAsString).longValue());
} catch ( NumberFormatException exception ) {
...
}
// use at least some date
else {
date = new Date();
}
class WebdavRepository (problem with removing users from roles):
---------------------------------------------------
public void removeRole(URI user, URI role, Credentials credentials) throws IOException {
XMLValue membersElement = getPropertyAsXMLValue(role, DAV_NAMESPACE, "group-member-set", credentials);
List members = membersElement.getRootElement().getChildren();
for ( Iterator i = members.iterator(); i.hasNext(); ) {
Element memberElement = (Element)i.next();
String uri = memberElement.getTextTrim();
if ( uri.endsWith(user.toString()) ) { // <------ CHANGE here
i.remove();
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org