Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4252

Wrong Authorization-related Javadoc for JobDefinition operations

    XMLWordPrintable

Details

    Description

      The Javadoc regarding authorization exceptions appears incorrect for many operations on job definitions, such as suspendJobDefinitionById, activateJobDefinitionById, etc.

      Example:

         * @throws AuthorizationException
         *          If the user has no {@link Permissions#UPDATE} permission on {@link Resources#PROCESS_INSTANCE}
         *          or no {@link Permissions#UPDATE_INSTANCE} permission on {@link Resources#PROCESS_DEFINITION}.
         *
         * @see #suspendJobById(String)
         * @see #suspendJobByJobDefinitionId(String)
         */
        void suspendJobDefinitionById(String jobDefinitionId);
      

      If I am not mistaken, the required authorization is UPDATE on PROCESS_DEFINITION; only in case the cascade option is used, the authorizations mentioned in the snippet need to be granted.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              smirnov Roman Smirnov
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce