HI Denis:

I have seen the problem is due to get users from an LDAP. I have tested with users taken from default h2 internal database and it works, but with users from ldap it doesn't work :(
Does it have any sense?


El 14/12/2011 13:21, Denis Weerasiri escribió:
Hi Roberto,
I tried this in G-Reg 4.0.0 with the following life-cycle which is "TestPermissionsLifeCycle". I was able to promote, demote, check/uncheck checkboxes from a non admin user from the role "tios_deploy_role".

Note-For the "tios_deploy_role" role, I gave the Configure, Login and Manage UI permissions from admin console (Home > Configure > Users and Roles > Roles > Permissions).

2011/12/12 Roberto Mier Escandón <rmescan...@gmail.com <mailto:rmescan...@gmail.com>>

    Hi Denis:

    G-Reg version is 4.0.0

    There are several configured Life-cycle. For example:

    <aspect name="TestPermissionsLifeCycle"
    
class="org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle">
    <configuration type="literal">
    <lifecycle>
    <scxml xmlns="http://www.w3.org/2005/07/scxml";
    <http://www.w3.org/2005/07/scxml>
                       version="1.0"
                       initialstate="Development">
    <state id="Development">
    <datamodel>
    <data name="checkItems">
    <item name="Code Completed" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    <item name="WSDL, Schema Created" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    <item name="QoS Created" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    </data>
    </datamodel>
    <transition event="Promote" target="Tested"/>
    </state>
    <state id="Tested">
    <datamodel>
    <data name="checkItems">
    <item name="Effective Inspection Completed" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    <item name="Test Cases Passed" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    <item name="Smoke Test Passed" forEvent="">
    <permissions>
    <permission roles="everyone,admin,tios_deploy_role"/>
    </permissions>
    </item>
    </data>
    </datamodel>
    <transition event="Promote" target="Production"/>
    <transition event="Demote" target="Development"/>
    </state>
    <state id="Production">
    <transition event="Demote" target="Tested"/>
    </state>
    </scxml>
    </lifecycle>
    </configuration>
    </aspect>

    But, also, I have tried to configure a distributed LCM sample
    life-cycle, and the result has been the same. The configuration
    for distributed LCM is:

    <aspect name="TestDistributedLC"
    class="org.wso2.carbon.governance.samples.lcm.DistributedLCM">
    <!-- Checklist can either be provided as a resource(type=resource)
    or as xml content(type=literal, default) as provided below. -->
    <!-- <configuration
    type="resource">/workspace/configuration</configuration> -->
    <!-- OR -->
    <configuration type="literal">
    <lifecycle>
    <state name="Diseño" roles="tios_deploy_role">
    <permissions>
    <permission action="promote" roles="tios_deploy_role"/>
    </permissions>
    <checkitem>uno</checkitem>
    <checkitem>dos</checkitem>
    <checkitem>tres</checkitem>
    </state>
    <state name="Final" roles="tios_deploy_role">
    <permissions>
    <permission action="demote" roles="tios_deploy_role"/>
    </permissions>
    <checkitem>cuatro</checkitem>
    <checkitem>cinco</checkitem>
    <checkitem>seis</checkitem>
    </state>
    </lifecycle>
    </configuration>
    </aspect>


    Best Regards.


    El 12/12/2011 14:56, Denis Weerasiri escribió:
    Hi Roberto,
    I think there's a problem with your configuration.
    Can you attach the life-cycle configuration and please mention
    the G-Reg version you use?

    2011/12/12 Roberto Mier Escandón <rmescan...@gmail.com
    <mailto:rmescan...@gmail.com>>


        Hi
        I'm not able to permit users different from admin user to
        check/uncheck the checkboxes in a lifecycle (promote or
        demote, even). I give users permissions for lifecycles but
        they can only see them, not change its status.
        I have also created a new lifecycle with permissions for
         states (<state name="foo"  roles="foo_role">) or for
        promoting or demoting operations, but It doesn't works
        What is the solution?. Am I doing something wrong? Is there
        any bug?

        Greetings.

--
        Roberto Mier Escandón.

        _______________________________________________
        Carbon-dev mailing list
        Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org>
        http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- Thanks,
    Denis
    ----------------------------------------------------------
    *Denis Weerasiri*
    Software Engineer; WSO2 Inc.; http://wso2.com <http://wso2.com/>,
    /email: denis <http://goog_277208233/>//[AT] wso2.com/
    <http://wso2.com/>/
    /
    /site: //https://sites.google.com/site/ddweerasiri//
    /blog: //http://ddweerasiri.blogspot.com/
    <http://ddweerasiri.blogspot.com/>/
    twitter: //http://twitter.com/ddweerasiri//
    linked-in: //http://lk.linkedin.com/in/ddweerasiri/


    _______________________________________________
    Carbon-dev mailing list
    Carbon-dev@wso2.org  <mailto:Carbon-dev@wso2.org>
    http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


--
    Roberto Mier Escandón.


    _______________________________________________
    Carbon-dev mailing list
    Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org>
    http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




--
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
Software Engineer; WSO2 Inc.; http://wso2.com <http://wso2.com/>,
/email: denis <http://goog_277208233/>//[AT] wso2.com/ <http://wso2.com/>/
/
/site: //https://sites.google.com/site/ddweerasiri//
/blog: //http://ddweerasiri.blogspot.com/ <http://ddweerasiri.blogspot.com/>/
twitter: //http://twitter.com/ddweerasiri//
linked-in: //http://lk.linkedin.com/in/ddweerasiri/


_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


--

Roberto Mier Escandón.

_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to