And here is the patch. If a node is virtual, builder names are prepended
to the 'number' field. If not, this will not happen.
I have tested this patch for both lists of virtual nodes and real nodes.
Ronald.
Index: BasicCloud.java
===================================================================
RCS file:
/usr/local/cvs/src/org/mmbase/bridge/implementation/BasicCloud.java,v
retrieving revision 1.118
diff -u -r1.118 BasicCloud.java
--- BasicCloud.java 9 Oct 2004 09:37:33 -0000 1.118
+++ BasicCloud.java 29 Oct 2004 11:11:12 -0000
@@ -704,7 +704,12 @@
MMObjectNode node = (MMObjectNode)o;
boolean mayRead = true;
for (int j = 0; mayRead && (j < steps.size()); ++j) {
- int nodenr =
node.getIntValue(((Step)steps.get(j)).getTableName() + ".number");
+ // Only virtual nodes have fields with a prepended
builder name (bug 6612).
+ String builderNamePrepend = "";
+ if (node.isVirtual()) {
+ builderNamePrepend = ((Step)
steps.get(j)).getTableName() + '.';
+ }
+ int nodenr = node.getIntValue(builderNamePrepend +
"number");
if (nodenr != -1) {
mayRead = auth.check(user, nodenr, Operation.READ);
}
-----------------------Disclaimer-------------------------
Dit bericht (met bijlagen) is met grote zorgvuldigheid samengesteld. Voor mogelijke
onjuistheid en/of onvolledigheid van de hierin verstrekte informatie kan Kennisnet
geen aansprakelijkheid aanvaarden, evenmin kunnen aan de inhoud van dit bericht (met
bijlagen) rechten worden ontleend. De inhoud van dit bericht (met bijlagen) kan
vertrouwelijke informatie bevatten en is uitsluitend bestemd voor de geadresseerde van
dit bericht. Indien u niet de beoogde ontvanger van dit bericht bent, verzoekt
Kennisnet u dit bericht te verwijderen, eventuele bijlagen niet te openen en wijst
Kennisnet u op de onrechtmatigheid van het gebruiken, kopi�ren of verspreiden van de
inhoud van dit bericht (met bijlagen).
This message (with attachments) is given in good faith. Kennisnet cannot assume any
responsibility for the accuracy or reliability of the information contained in this
message (with attachments), nor shall the information be construed as constituting any
obligation on the part of Kennisnet. The information contained in this message (with
attachments) may be confidential or privileged and is only intended for the use of the
named addressee. If you are not the intended recipient, you are requested by Kennisnet
to delete this message (with attachments) without opening it and you are notified by
Kennisnet that any disclosure, copying or distribution of the information contained in
this message (with attachments) is strictly prohibited and unlawful.
----------------------------------------------------------