Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2023135

Summary: nfs4_setfacl fails on numeric name file with error: "No path(s) specified."
Product: Red Hat Enterprise Linux 7 Reporter: Ju Ke <jke>
Component: nfs4-acl-toolsAssignee: Steve Dickson <steved>
Status: CLOSED WONTFIX QA Contact: Yongcheng Yang <yoyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: bfields, dwysocha, steved, xzhou
Target Milestone: rcKeywords: Reproducer
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2025486 (view as bug list) Environment:
Last Closed: 2021-11-22 11:05:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2025486    

Description Ju Ke 2021-11-15 00:18:07 UTC
Description of problem:

  nfs4_setfacl fails on numeric name file with error: "No path(s) specified."

Version-Release number of selected component (if applicable):

  Red Hat Enterprise Linux Server release 7.8 (Maipo)

  nfs4-acl-tools-0.3.3-20.el7.x86_64                    


How reproducible:

  # nfs4_setfacl -a A::gg@domain:RWX 456 => failed: No path(s) specified.
  
  # nfs4_setfacl -a A::gg@domain:RWX 123 => failed: No path(s) specified.
  
  # nfs4_setfacl -a A::gg@domain:RWX ./456 => It worked.
  
  # nfs4_setfacl -a A::gg@domain:RWX 456a => It worked.


Steps to Reproduce:
1.
2.
3.

Actual results:

  nfs4_setfacl fails on numeric name file with error: "No path(s) specified."


Expected results:

  nfs4_setfacl should work normally with file which only has numeric filename.


Additional info:

Comment 6 Dave Wysochanski 2021-11-15 18:00:14 UTC
Can you share if this can be reproduced on RHEL8?

Given there is a workaround, and state of RHEL7, this does not seem appropriate for RHEL7 at this point.  SteveD, any thoughts on this one?

Comment 8 Yongcheng Yang 2021-11-16 02:23:34 UTC
RHEL8 also has this problem:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@hp-dl388g8-20 mnt_test]# ls
123  testfile
[root@hp-dl388g8-20 mnt_test]# nfs4_setfacl -a A::OWNER@:rwatTcCy testfile
[root@hp-dl388g8-20 mnt_test]# nfs4_setfacl -a A::OWNER@:rwatTcCy 123
No path(s) specified.
[root@hp-dl388g8-20 mnt_test]# rpm -qf `which nfs4_setfacl`
nfs4-acl-tools-0.3.5-3.el8.x86_64
[root@hp-dl388g8-20 mnt_test]#

Looks like we don't check a numeric name file before.

Hi Bruce, do you think this is a fixable issue?

Comment 9 J. Bruce Fields 2021-11-16 20:55:59 UTC
The problem is that a number there has a special meaning; from the nfs4_setfacl man page:

       -a acl_spec [index]
              add  the  ACEs  from  acl_spec to file's ACL.  ACEs are inserted
              starting at the indexth position (DEFAULT: 1) of file's ACL.

So in the case the next word after acl_spec is a number, it's ambiguous whether it was meant to be an index or a file name.

Well, actually, I think a file is mandatory, so in the case of "nfs4_setfacl -a A::OWNER@:rwatTcCy 123", "123" has to be a file name.  But it's also legal to specify multiple filenames, so e.g. "nfs4_setfacl -a A::OWNER@:rwatTcCy 123 file.txt" will always be ambiguous.

For now, either "nfs4_setfacl -a A::OWNER@:rwatTcCy ./123" or "nfs4_setfacl -a A::OWNER@:rwatTcCy 1 123" is a workaround.

Longer term, this syntax is inherently ambiguous, so we should replace it by something else and phase it out.

Comment 10 Steve Dickson 2021-11-20 14:06:59 UTC
(In reply to Dave Wysochanski from comment #6)
> Can you share if this can be reproduced on RHEL8?
> 
> Given there is a workaround, and state of RHEL7, this does not seem
> appropriate for RHEL7 at this point.  SteveD, any thoughts on this one?

I agree with you... This is not something for RHEL7

Comment 11 Dave Wysochanski 2021-11-22 11:05:58 UTC
Opened a RHEL8 clone of this bug: https://bugzilla.redhat.com/show_bug.cgi?id=2025486

Closing this WONTFIX per previous comments and lifecycle of RHEL7.