OFBiz
  1. OFBiz
  2. OFBIZ-815

Flexadmin cannot invoke the service [createPartyAcctgPreference]

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: accounting
    • Labels:
      None
    • Environment:

      JDK 1.5, Database postgresql

      Description

      When creating a new company and then trying to setup its accounting preference the error comes up. The console.log is below:

      You do not have permission to invoke the service [createPartyAcctgPreference]

      Service [createPartyAcctgPreference] threw an unexpected exception/error
      Exception: org.ofbiz.service.ServiceAuthException
      Message: You do not have permission to invoke the service [createPartyAcctgPreference]
      ---- stack trace ---------------------------------------------------------------
      org.ofbiz.service.ServiceAuthException: You do not have permission to invoke the service [createPartyAcctgPreference]
      org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:781)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:307)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
      org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
      org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:290)
      org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:410)
      org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:243)
      org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
      org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
      org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
      org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
      org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
      org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      java.lang.Thread.run(Thread.java:595)

        Activity

        Hide
        Vikrant Rathore added a comment -

        Hi Jason,

        yes this is exactly what Scott mentioned that currently only FULLADMIN and BIZADMIN have the permission to setup accounting preference. He asked other project admins whether it should be assigned to flexadmin or not. In my view it should be assigned to flexadmin as this role has all the granular permission.

        thanks
        with best regards,
        Vikrant

        Show
        Vikrant Rathore added a comment - Hi Jason, yes this is exactly what Scott mentioned that currently only FULLADMIN and BIZADMIN have the permission to setup accounting preference. He asked other project admins whether it should be assigned to flexadmin or not. In my view it should be assigned to flexadmin as this role has all the granular permission. thanks with best regards, Vikrant
        Hide
        Jason Wu added a comment -

        I can setup the accounting preference for a new company with "admin" who has only "FULLADMIN" permission.

        Show
        Jason Wu added a comment - I can setup the accounting preference for a new company with "admin" who has only "FULLADMIN" permission.
        Hide
        Scott Gray added a comment -

        Can anyone confirm whether or not flexadmin is supposed to have permission for this? Currently it is only assigned to FULLADMIN and BIZADMIN

        Show
        Scott Gray added a comment - Can anyone confirm whether or not flexadmin is supposed to have permission for this? Currently it is only assigned to FULLADMIN and BIZADMIN

          People

          • Assignee:
            Anil K Patel
            Reporter:
            Vikrant Rathore
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development