IBM Support

No matching entries found for view tag

Troubleshooting


Problem

This technote explains why attempts to run []cleartool lsview [] on an IBM® Rational® ClearCase® view with brackets [ ] in the name on Microsoft® Windows® results in the error []cleartool: Error: No matching entries found for view tag[].

Symptom

SCENARIO:

Attempts to run cleartool lsview on Windows from a command prompt results in the following output:

C:\>cleartool lsview
* test_view \\host1\ccstg_c\Views\test_view2.vws
test_[demo] \\host1\ccstg_c\Views\test_[demo].vws


Note:
The view test_[snap] has brackets in the name.

Attempts run cleartool lsview test_[snap] results in the following error:

C:>cleartool lsview test_[demo]
cleartool: Error: No matching entries found for view tag "test_[demo]".


According to the ClearCase Administration Guide, View tags must conform to the host platform. As Windows allows brackets in directory and file names, this naming convention should not fail on Windows. The cleartool utility however, uses the brackets [ ] as a wild card delimiter as illustrated below:

Attempts to run the lsview command from cleartool interactive results in the error:

cleartool>lsview test_[demo]
cleartool: Error: No match for wildcard: "lsview view[]"


Note: No other problems have been experienced with found with the view tag. View can be started and used without issues. The problem seems to be narrowed to the lsview command only.

Cause

This issue has been identified as defect PK37112.

Resolving The Problem



Changing the behavior of cleartool to accommodate this infrequent use case will have a larger impact on other operations, thus the decision was made by Product Management to exclude the resolution of this defect from future upgrades and releases due to the significant architectural changes required to implement the solution.


WORKAROUND:

Create the view tag without the brackets.

For existing views with the brackets in the tag, use the cleartool rmtag and cleartool mktag commands to resolve the issue.

Example:

C:\>cleartool rmtag -view test_[demo]

C:\>cleartool mktag -view -tag test_demo \\host1\ccstg_c\Views\test_[demo].vws

Review the ClearCase Command Reference Guide on the topic of mktag and rmtag (cleartool man mktag/rmtag) for more information.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Cleartool","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21254477