Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-810

When authorization is enabled - delete of non-existing entity throws error that is not helpful

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.6
    • None
    • webapp
    • None

    Description

      To reproduce, set "*.falcon.security.authorization.enabled=true" in startup.properties. Then restart falcon and try to delete a non-existing entity.

      [hrt_qa@falcon-balu-6-3 falcon]$ ./bin/falcon entity -type process -delete -name cleanseEmailProcess
      Stacktrace:
      org.apache.falcon.client.FalconCLIException: Internal Server Error;
      	at org.apache.falcon.client.FalconCLIException.fromReponse(FalconCLIException.java:44)
      	at org.apache.falcon.client.FalconClient.checkIfSuccessful(FalconClient.java:1181)
      	at org.apache.falcon.client.FalconClient.sendEntityRequest(FalconClient.java:577)
      	at org.apache.falcon.client.FalconClient.delete(FalconClient.java:305)
      	at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:409)
      	at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:196)
      	at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:145)
      [hrt_qa@falcon-balu-6-3 falcon]$
      

      The actual error can be found in falcon.application.log and it looks as follows.

       2014-10-15 20:06:41,071 WARN  - [330512910@qtp-88119371-0:] ~ /api/entities/delete/process/cleanseEmailProcess: org.apache.hadoop.security.authorize.AuthorizationException: org.apache.falcon.entity.EntityNotRegisteredException: cleanseEmailProcess (PROCESS) not found (log:76)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bvellanki Balu Vellanki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: