Bug 760145 - Drift snapshot displays wrong directory name on windows
Summary: Drift snapshot displays wrong directory name on windows
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.2
Hardware: Unspecified
OS: Windows
unspecified
low
Target Milestone: ---
: RHQ 4.3.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon30-sprint10, rhq43-sprint10 789492
TreeView+ depends on / blocked
 
Reported: 2011-12-05 14:16 UTC by Libor Zoubek
Modified: 2015-11-02 00:42 UTC (History)
4 users (show)

Fixed In Version: 4.3
Clone Of:
: 789492 (view as bug list)
Environment:
Last Closed: 2013-08-31 10:17:21 UTC
Embargoed:


Attachments (Terms of Use)
invalid dirname screenshot (60.96 KB, image/png)
2011-12-05 14:24 UTC, Libor Zoubek
no flags Details
Screenshot (37.42 KB, image/png)
2011-12-15 12:29 UTC, Sunil Kondkar
no flags Details

Description Libor Zoubek 2011-12-05 14:16:44 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Version: 3.0.0.GA
Build Number: e23441b:4e746e8

How reproducible:always


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
  
Actual results:
Table showing contents of snapshot shows "mp" as directory name instead of "tmp"


Expected results:
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

Comment 1 Libor Zoubek 2011-12-05 14:24:09 UTC
Created attachment 540942 [details]
invalid dirname screenshot

Comment 2 Jay Shaughnessy 2011-12-05 20:31:57 UTC
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.

Comment 3 Jay Shaughnessy 2011-12-05 20:58:29 UTC
master commit 83197699d41880beb6266fc47d38cbf201bce7a4

Comment 4 Jay Shaughnessy 2011-12-05 21:00:37 UTC
Test Notes:
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

Comment 5 Sunil Kondkar 2011-12-15 12:29:16 UTC
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.

Comment 6 Sunil Kondkar 2011-12-15 12:29:45 UTC
Created attachment 547206 [details]
Screenshot

Comment 7 Heiko W. Rupp 2013-08-31 10:17:21 UTC
Bulk close of old bugs in VERIFIED state.


Note You need to log in before you can comment on or make changes to this bug.