Skip to content

Commit

Permalink
[ozone] disabling the change permission option in ozone
Browse files Browse the repository at this point in the history
  • Loading branch information
agl29 committed Mar 6, 2023
1 parent 9f55b00 commit eb975d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -1126,7 +1126,7 @@ else:
return self.isHdfs() || self.isOFS();
});
self.isPermissionEnabled = ko.pureComputed(function () {
return !self.isS3() && !self.isABFSRoot() && !self.isOFSRoot();
return !self.isS3() && !self.isABFSRoot() && !self.isOFS();
});
self.isReplicationEnabled = ko.pureComputed(function () {
return self.isHdfs();
Expand Down
3 changes: 0 additions & 3 deletions desktop/core/src/desktop/lib/fs/ozone/upload.py
Expand Up @@ -72,9 +72,6 @@ def new_file(self, field_name, file_name, *args, **kwargs):
# self._check_access() #not implemented
LOG.debug("Initiating OFS upload to target path: %s" % self.target_path)
self.file = SimpleUploadedFile(name=file_name, content='')
if self.file.size >= UPLOAD_CHUNK_SIZE.get():
LOG.exception('File size should be less then: %s' % UPLOAD_CHUNK_SIZE.get())
raise StopUpload()
raise StopFutureHandlers()
except (OFSFileUploadError, WebHdfsException) as e:
LOG.error("Encountered error in OFSUploadHandler check_access: %s" % e)
Expand Down

0 comments on commit eb975d3

Please sign in to comment.