- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    5.15.8, 6.2.3
 
- 
        
 - 
        bc06a04dd8 (qt/qtapplicationmanager/dev) 3648652eb9 (qt/qtapplicationmanager/6.2) 5c94572c57 (qt/qtapplicationmanager/6.3) bb158100dd (qt/qtapplicationmanager/5.15) bb158100dd (qt/tqtc-qtapplicationmanager/5.15) 3648652eb9 (qt/qtapplicationmanager/6.2)
 
Steps to reproduce
- On your dev PC, extract the attached project to a new directory ("APPROOT")
 - From the console, cd into <APPROOT>
 - Run `appman -c am-config.yaml`
 - Click the "Install" button in the GUI
 - Close the GUI window
 - Run `appman -c am-config.yaml` again
 
Outcomes
- After Step #4, the package is installed into <APPROOT>/apps/animated-windows.rabbit/ (This is expected)
 - After Step #4, an empty directory is created at <APPROOT>/animated-windows.rabbit/ (This is NOT expected)
 - After Step #6, the contents of <APPROOT> get deleted and appman fails to load main.qml (This is NOT expected)
 
Notes
- If Step #4 is skipped, then nothing gets deleted
 - If we cd into <APPROOT>/apps/ and run "appman -c ../am-config.yaml" instead, then nothing gets deleted
 
| For Gerrit Dashboard: QTBUG-101881 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 401721,7 | Handle an empty or invalid documentDir correctly | dev | qt/qtapplicationmanager | Status: MERGED | +2 | 0 | 
| 401910,3 | Handle an empty or invalid documentDir correctly | 5.15 | qt/qtapplicationmanager | Status: MERGED | +2 | 0 | 
| 401911,2 | Handle an empty or invalid documentDir correctly | 6.3 | qt/qtapplicationmanager | Status: MERGED | +2 | 0 | 
| 401912,2 | Handle an empty or invalid documentDir correctly | 6.2 | qt/qtapplicationmanager | Status: MERGED | +2 | 0 |