Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16724

Snapshot owner can't clone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.4.0, 2.0.0
    • snapshots
    • None
    • Reviewed

    Description

      Currently only Global admin has the access of cloning a snapshot.

      In AccessController,

        @Override
        public void preCloneSnapshot(final ObserverContext<MasterCoprocessorEnvironment> ctx,
            final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
            throws IOException {
          requirePermission(getActiveUser(ctx), "cloneSnapshot " + snapshot.getName(), Action.ADMIN);
        }
      

      Snapshot owner should be able to clone it, need to add a check like,

      SnapshotDescriptionUtils.isSnapshotOwner(snapshot, user)
      

      Attachments

        1. HBASE-16724.patch
          3 kB
          Pankaj Kumar
        2. HBASE-16724-branch-1.1.patch
          4 kB
          Pankaj Kumar
        3. HBASE-16724-branch-1.2.patch
          4 kB
          Pankaj Kumar
        4. HBASE-16724-branch-1.3.patch
          4 kB
          Pankaj Kumar
        5. HBASE-16724-branch-1.patch
          4 kB
          Pankaj Kumar
        6. HBASE-16724-V2.patch
          4 kB
          Pankaj Kumar
        7. HBASE-16724-V3.patch
          4 kB
          Pankaj Kumar

        Issue Links

          Activity

            People

              pankaj2461 Pankaj Kumar
              pankaj2461 Pankaj Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: