Expand my Community achievements bar.

TAG API ACL's

Avatar

Level 2

Hi,

I have a user callled consumer with read permission to etc/tags.  And i am creating tags list under /etc/tags/plant  using Tag manager api. The read permission set to etc/tags is not propagating to /etc/tags/plant.  consumer is doesnt have any more read permission to /etc/tags/plant where as has read permission on /etc/tags.

Code is below

String mainPath = "/etc/tags/plant";
                Tag mainTag = tagManager.resolve(mainPath);
                if (mainTag != null) {
                    tagManager.deleteTag(mainTag);
                    session.save();
                    logger.debug("Main Tag already exists and deleted to refresh the list");
                }
                logger.debug("New main palnt tag created");
                tagManager.createTag(mainPath, "plant", "plant");
                session.save();

                    String plant = "one tag";
                    String uCasePlant = plant.toUpperCase();

                    String tagPath = mainPath + "/" + uCasePlant;
                    Tag tag = tagManager.resolve(tagPath);
                    if (tag != null) {
                        logger.debug("Tag already exists");
                    } else {
                        logger.debug("New tag created");
                        tagManager.createTag(tagPath, uCasePlant, uCasePlant);

                        logger.debug("New tag saved");

                    }
                

                session.save();

1 Reply

Avatar

Level 9

Hi Kavitha,

You will not see explict read acl node under /etc/tags/plant.  It automatically inherits at evaluation time from  /etc/tags/rep:policy.   In above is not happening can you attach the output of http://host:port/crx/de/ace.jsp?_dc=1222568483939&path=%2Fetc%2Ftags%2Fplant&_charset_=utf-8

Thanks,