Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12219

cdap cli help: there is no entity-type called app, it's application

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i005m7:

      Description

      when looking at the help in CLI, under SECURITY, it states that there is an entity type called app which is incorrect. it is application.

        grant actions <actions> on entity <entity> to <principal-type> <principal-name>
          Grants a principal privileges to perform certain actions on an entity. '<actions>' is a comma-separated list of privileges, any of 'READ', 'WRITE', 'EXECUTE', or
          'ADMIN'. '<entity>' is of the form '<entity-type>:<entity-id>', where '<entity-type>' is one of 'namespace', 'artifact', 'app', 'dataset', 'program', 'stream', or
          'view'.
      
      cdap (http://************:11015/namespace:default)> grant actions READ on entity app:something to user russell
      Error: No enum constant co.cask.cdap.proto.element.EntityType.APP
      
      cdap (http://************:11015/namespace:default)> grant actions READ on entity application:something to user russell
      Error: Invalid ID: application:something
      

        Attachments

          Activity

            People

            • Assignee:
              russellsavage Russ Savage
              Reporter:
              russellsavage Russ Savage
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: