On 16/04/2013 19:05, Martin van Es wrote:
Hi,

I fixed it. The instructions on the wiki are wrong: The correct location for ResourcesPanel.java is
console/src/main/java/org/apache/syncope/console/pages/panels/ResourcesPanel.java

Nice catch :-)
I've fixed the path in the wiki page, thanks for reporting.

Regards.

After I moved the .java file and rebuilt the wars, the ResourcesPanel.class was of today and I can add resources to a role.

Regards,
Martin


On Tue, Apr 16, 2013 at 5:38 PM, Francesco Chicchiriccò <[email protected] <mailto:[email protected]>> wrote:

    On 16/04/2013 17:19, Martin van Es wrote:
    I don't know how to check what version of the Class I'm running,
    the logs aren't telling me, but I do know I copied the correct
    files in the correct location.
    I do see however that the ResourcesPanel.class I find in the
    target tree of console are dated april 5, which is strange for a
    build that happened today?

    This is clearly your issue.


    I do a "mvn clean package -Dlog.directory=/var/lib/tomcat7/logs
    -Dconnid.location=file:/opt/syncope/bundles", should I do
    something else instead?

    Just this, from the root (e.g. the directory containing core/ and
    console/).

    Regards.


    On Tue, Apr 16, 2013 at 4:37 PM, Francesco Chicchiriccò
    <[email protected] <mailto:[email protected]>> wrote:

        On 16/04/2013 16:05, Martin van Es wrote:
        Hi Francesco,

        On Tue, Apr 16, 2013 at 2:59 PM, Francesco Chicchiriccò
        <[email protected] <mailto:[email protected]>> wrote:

            A couple of bugs have been found in Apache Syncope
            1.1.0, already fixed in 1.1.1-SNAPSHOT, including the
            one you are reporting above.
            Please take a look at [3] for a workaround until 1.1.1
            is released.


        I applied both hotfixes in [3] and recompiled
        syncope/syncope-console but this doesn't fix the resource to
        role assignment bug.

        This is strange: please be sure that you are actually running
        the ResourcePanel class [4], that differs from the original
        1.1.0 because of [5], e.g.

        new PropertyModel<List<String>>(roleTO, "resources")

        instead of

        new ListModel<String>(selectedResources)

        I have just tested this again and had no problems.

        Regards.

        [4]
        
http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourcesPanel.java?view=co&pathrev=1467915
        [5]
        
http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourcesPanel.java?r1=1464359&r2=1467915&pathrev=1467915&diff_format=h

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to