APAR status
Closed as Permanent restriction.
Error description
The config spec rule "element <scope> <rule> -none" is ignored in a Unix dynamic view. The element is still visible when doing regular 'ls' The expected result for an element is: unix ls : not visible cleartool ls : <no version selected> The same rules under Microsoft Windows is returning the expected result: dir : not visible cleartool ls : <no version selected>
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * Users of ClearCase config spec rule "element <scope> <rule> * * -none" * **************************************************************** * PROBLEM DESCRIPTION: * * The "ls" command lists the contents of a directory (i.e., * * the names it contains) and the config spec rule doesn't * * apply to that directory, just some sub-directory/file, so * * returning the contents of the directory element is correct * * behavior. When trying to use one of the names in the * * directory, the config spec rule comes into play for that * * name, so you can't stat it or read it, which, again, is * * correct behavior. If you want to not see the name(s) in a * * directory element, you have to do "cleartool rmname" to get * * rid of it...just like any other file system (where you can * * read a dir contents and get a name that then might return an * * error if you use it if you don't have sufficient access to * * the object named). * **************************************************************** * RECOMMENDATION: * ****************************************************************
Problem conclusion
The problem on Unix/Linux...using the config spec rule -none hides the element, but the name of the element is still in its containing directory. Therefore, using a Unix/Linux /bin/ls command will show the name, since the user has access to the containing directory and /bin/ls just lists names. However, if you try to get stat information about the "hidden" element, for instance by using "/bin/ls -l", the stat will fail (since the element is hidden) and, from my experiments, every platform handles that situation slightly differently, although AIX and HPUX seem to be the same. For instance, I used a config spec rule of "element /vobs/atria/uts/fs -none" and then did "cd /vobs/atria/uts" and did a "/bin/ls -l" with these results: AIX and HPUX: []: /bin/ls -l ./fs not found total 6 drwxrwxr-x 1 atria ccdev 22 Jun 05 2014 . drwxrwx--- 32 atria ccdev 2290 Jul 28 2014 .. Solaris 10: []: /bin/ls -l total 6 drwxrwxr-x 1 atria ccdev 22 Jun 5 2014 . drwxrwx--- 32 atria ccdev 2290 Jul 28 2014 .. SLES 10: []: /bin/ls -l /bin/ls: fs: No such file or directory total 3 drwxrwxr-x 1 atria ccdev 22 2014-06-05 15:56 . drwxrwx--- 32 atria ccdev 2290 2014-07-28 11:15 .. RHEL 5.10: []: /bin/ls -l total 3 drwxrwxr-x 1 atria ccdev 22 Jun 5 2014 . drwxrwx--- 32 atria ccdev 2290 Jul 28 2014 .. ?--------- ? ? ? ? ? fs RHEL 6.7: []: /bin/ls -l ls: cannot access fs: No such file or directory total 3 drwxrwxr-x. 1 atria ccdev 22 Jun 5 2014 . drwxrwx---. 32 atria ccdev 2290 Jul 28 2014 .. ??????????? ? ? ? ? ? fs Note, Solaris 10 actually does what we are after, but the others include error messages or a line for the name (with no attributes), or both.
Temporary fix
Comments
APAR Information
APAR number
PI52578
Reported component name
CLEARCASE WIN
Reported component ID
5724G2900
Reported release
800
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2015-11-16
Closed date
2016-02-25
Last modified date
2016-02-25
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
25 February 2016