[jira] Created: (OFBIZ-231) Content Mgr > Content Setup > Permissions tab --> Error Screen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-231) Content Mgr > Content Setup > Permissions tab --> Error Screen

Nicolas Malin (Jira)
Content Mgr > Content Setup > Permissions tab --> Error Screen
--------------------------------------------------------------

                 Key: OFBIZ-231
                 URL: http://issues.apache.org/jira/browse/OFBIZ-231
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: content
    Affects Versions: SVN trunk
         Environment: Windows XP
            Reporter: Marco Risaliti
            Priority: Minor


Any attempt to open the Permissions sub-tab at the Content Setup tab in the Content Manager returns the following Error Message:
:ERROR MESSAGE:
org.ofbiz.base.util.GeneralException: Error rendering screen [component://content/widget/contentsetup/ContentSetupScreens.xml#UserPermissions]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://content/widget/contentsetup/userpermprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://content/widget/contentsetup/userpermprep.bsh], line [69]: Sourced file: component://content/widget/contentsetup/userpermprep.bsh : Cannot access field: size, on object: [[GenericEntity:RoleType][createdStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][createdTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][description,Blog Administrator(java.lang.String)][hasTable,N(java.lang.String)][lastUpdatedStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][lastUpdatedTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][parentTypeId,BLOG(java.lang.String)][roleTypeId,BLOG_ADMIN(java.lang.String)],

{truncated similar field descriptors}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-231) Content Mgr > Content Setup > Permissions tab --> Error Screen

Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-231?page=all ]

Marco Risaliti updated OFBIZ-231:
---------------------------------

    Attachment: contentsetup_permission.patch

This issue is copy of the old-jira issue OFBIZ-854 and seems that the problem is simple the use of size() instead of the use of the variable size (that doesn't exists).
I attach the patch to solve it.
Once you have tested and commited you can also close the old JIRA issue OFBIZ-854.

Thanks
Marco

> Content Mgr > Content Setup > Permissions tab --> Error Screen
> --------------------------------------------------------------
>
>                 Key: OFBIZ-231
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-231
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Marco Risaliti
>            Priority: Minor
>         Attachments: contentsetup_permission.patch
>
>
> Any attempt to open the Permissions sub-tab at the Content Setup tab in the Content Manager returns the following Error Message:
> :ERROR MESSAGE:
> org.ofbiz.base.util.GeneralException: Error rendering screen [component://content/widget/contentsetup/ContentSetupScreens.xml#UserPermissions]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://content/widget/contentsetup/userpermprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://content/widget/contentsetup/userpermprep.bsh], line [69]: Sourced file: component://content/widget/contentsetup/userpermprep.bsh : Cannot access field: size, on object: [[GenericEntity:RoleType][createdStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][createdTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][description,Blog Administrator(java.lang.String)][hasTable,N(java.lang.String)][lastUpdatedStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][lastUpdatedTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][parentTypeId,BLOG(java.lang.String)][roleTypeId,BLOG_ADMIN(java.lang.String)],
> {truncated similar field descriptors}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-231) Content Mgr > Content Setup > Permissions tab --> Error Screen

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-231?page=all ]

Jacopo Cappellato reassigned OFBIZ-231:
---------------------------------------

    Assignee: Jacopo Cappellato

> Content Mgr > Content Setup > Permissions tab --> Error Screen
> --------------------------------------------------------------
>
>                 Key: OFBIZ-231
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-231
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Marco Risaliti
>         Assigned To: Jacopo Cappellato
>            Priority: Minor
>         Attachments: contentsetup_permission.patch
>
>
> Any attempt to open the Permissions sub-tab at the Content Setup tab in the Content Manager returns the following Error Message:
> :ERROR MESSAGE:
> org.ofbiz.base.util.GeneralException: Error rendering screen [component://content/widget/contentsetup/ContentSetupScreens.xml#UserPermissions]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://content/widget/contentsetup/userpermprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://content/widget/contentsetup/userpermprep.bsh], line [69]: Sourced file: component://content/widget/contentsetup/userpermprep.bsh : Cannot access field: size, on object: [[GenericEntity:RoleType][createdStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][createdTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][description,Blog Administrator(java.lang.String)][hasTable,N(java.lang.String)][lastUpdatedStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][lastUpdatedTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][parentTypeId,BLOG(java.lang.String)][roleTypeId,BLOG_ADMIN(java.lang.String)],
> {truncated similar field descriptors}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-231) Content Mgr > Content Setup > Permissions tab --> Error Screen

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-231?page=all ]

Jacopo Cappellato closed OFBIZ-231.
-----------------------------------

    Resolution: Fixed

Thanks Marco,

your patch is now in svn rev 442460 (I'll close the old issue as soon as the old server is up).
It was a trivial error indeed... and sometimes I wonder how these bugs can hit the public svn (and stay there for such a long time)!


> Content Mgr > Content Setup > Permissions tab --> Error Screen
> --------------------------------------------------------------
>
>                 Key: OFBIZ-231
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-231
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Marco Risaliti
>         Assigned To: Jacopo Cappellato
>            Priority: Minor
>         Attachments: contentsetup_permission.patch
>
>
> Any attempt to open the Permissions sub-tab at the Content Setup tab in the Content Manager returns the following Error Message:
> :ERROR MESSAGE:
> org.ofbiz.base.util.GeneralException: Error rendering screen [component://content/widget/contentsetup/ContentSetupScreens.xml#UserPermissions]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://content/widget/contentsetup/userpermprep.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://content/widget/contentsetup/userpermprep.bsh], line [69]: Sourced file: component://content/widget/contentsetup/userpermprep.bsh : Cannot access field: size, on object: [[GenericEntity:RoleType][createdStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][createdTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][description,Blog Administrator(java.lang.String)][hasTable,N(java.lang.String)][lastUpdatedStamp,2006-03-28 14:33:28.421(java.sql.Timestamp)][lastUpdatedTxStamp,2006-03-28 14:33:28.25(java.sql.Timestamp)][parentTypeId,BLOG(java.lang.String)][roleTypeId,BLOG_ADMIN(java.lang.String)],
> {truncated similar field descriptors}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira