Red Hat Bugzilla – Bug 760145
Drift snapshot displays wrong directory name on windows
Last modified: 2015-11-01 19:42:13 EST
Description of problem:
Version-Release number of selected component (if applicable):
Build Number: e23441b:4e746e8
Steps to Reproduce:
1. have an windows agent
2. create drift from file-system template on widnows agent
3. set "C:\" as base directory
4. set "tmp" and "**/*" to include path
5. put some files to C:\tmp
6. run drift detection
7. select drift and click on "Pin" to Pin your snapshot
Table showing contents of snapshot shows "mp" as directory name instead of "tmp"
Directory name in snapshot is displayed correctly
Additional info: It seems like missing "t" was eaten by backslash (full path to dir is C:\tmp
Created attachment 540942 [details]
invalid dirname screenshot
This is fairly bad as the paths get corrupted for all drift entries when
the basedir is a windows file system root (e.g. c:/ or d:/). There is
no workaround other than not using the file system root as the basedir.
master commit 83197699d41880beb6266fc47d38cbf201bce7a4
validate on windows *and* linux:
- Using root dir basedir with an includes subdir
- Using non-root basedir without an includes
- Using non-root basedir with an includes subdir
Verified on master build#836 (Version: 4.3.0-SNAPSHOT Build Number: 3300dff)
Followed the steps and verified that the directory name displayed is correct. Please refer the screenshot.
Verified on windows and linux root and non-root basedir with and without an includs subdir. The path is displayed correctly.
Created attachment 547206 [details]
Bulk close of old bugs in VERIFIED state.