OFBiz
  1. OFBiz
  2. OFBIZ-4206

Project Manager throws error if project user is not assigned to every project

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Release 09.04
    • Fix Version/s: None
    • Labels:
    • Environment:

      RHEL 5.5 32 bit JDK

      Description

      The project manager returns an error on the main page unless every user is added to every single project. It should return a list of just the projects the user is assigned to.

      :ERROR MESSAGE:
      org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://common/widget/CommonScreens.xml#GlobalDecorator: java.lang.IllegalArgumentException: Error running Groovy script at location [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]: org.ofbiz.service.ServiceAuthException: You have no access to the project#: 10040 (Error running Groovy script at location [component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy]: org.ofbiz.service.ServiceAuthException: You have no access to the project#: 10040)

      It defeats the point.

        Activity

        Hide
        Jacques Le Roux added a comment -

        (Pierre Smits on dev ML)
        Hi Mansour,

        You are right. The patch indeed does that and returns a blank screen for
        users other than with access 'PROJECTMGR_ADMIN. Other users can look at
        projects which will show projects the user is a member of.

        At the moment I do not have the time to work on a more elaborate solution.
        The patch is just a quick fix...

        Regards,

        Pierre

        Show
        Jacques Le Roux added a comment - (Pierre Smits on dev ML) Hi Mansour, You are right. The patch indeed does that and returns a blank screen for users other than with access 'PROJECTMGR_ADMIN. Other users can look at projects which will show projects the user is a member of. At the moment I do not have the time to work on a more elaborate solution. The patch is just a quick fix... Regards, Pierre
        Hide
        Mansour Al Akeel added a comment -

        Pierre,
        The patch seems to restrict access to this scree to "PROJECTMGR_ADMIN".
        I am not sure if this issue is to be resolved in the screen or making the service returns projects the user has access to.

        I appreciate your help here.

        Show
        Mansour Al Akeel added a comment - Pierre, The patch seems to restrict access to this scree to "PROJECTMGR_ADMIN". I am not sure if this issue is to be resolved in the screen or making the service returns projects the user has access to. I appreciate your help here.
        Hide
        Mansour Al Akeel added a comment -

        Thank you Peirre
        When will this patch find its way to trunk ?

        Show
        Mansour Al Akeel added a comment - Thank you Peirre When will this patch find its way to trunk ?
        Hide
        Pierre Smits added a comment -

        This patch will alleviate the problem.

        Show
        Pierre Smits added a comment - This patch will alleviate the problem.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tolulope Aganga-Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development