Project

General

Profile

Actions

Bug #19897

open

FUSE should return a different error when attempting to create a file in a project

Added by Peter Amstutz almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
0.5

Description

You cannot create a bare file in a Project in the FUSE mount (only in Collections). If you try, you will get I/O error. This is disorienting because I/O error usually means something very bad happened. This should be something else like:

EPERM "Operation not permitted"
ENOSYS "Function not implemented"

Internally it is actually throwing NoImplementedError so catching that exception generally and turning it into ENOSYS would make sense. However the particular function that tries to create a file in a project could throw EPERM since it is more precise semantics.

From discussion: let's go with ENOTSUP "Operation not supported (POSIX.1-2001)."


Subtasks 1 (1 open0 closed)

Task #19950: ReviewNewPeter Amstutz

Actions
Actions

Also available in: Atom PDF