hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pankaj Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16724) Snapshot owner can't clone
Date Wed, 28 Sep 2016 11:56:20 GMT
Pankaj Kumar created HBASE-16724:

             Summary: Snapshot owner can't clone
                 Key: HBASE-16724
                 URL: https://issues.apache.org/jira/browse/HBASE-16724
             Project: HBase
          Issue Type: Bug
          Components: snapshots
    Affects Versions: 2.0.0
            Reporter: Pankaj Kumar
            Assignee: Pankaj Kumar

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

In AccessController,
  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)

This message was sent by Atlassian JIRA

View raw message