Bug 835532 - Export on Windows fails with 'File or directory must be absolute.' error
Summary: Export on Windows fails with 'File or directory must be absolute.' error
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.1.GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.2.x
Assignee: David Ingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-26 12:11 UTC by Martin Weiler
Modified: 2018-11-28 20:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Weiler 2012-06-26 12:11:08 UTC
Description of problem:
Using GateIn Management CLI, the export command fails on Windows 2008 Server.

How reproducible:
Sometimes (it worked on a Windows Vista machine)


Steps to Reproduce:
1. Use trial version of SecureCRT to ssh connect to the management interface
2. Try the export command:

% mgmt connect
Password: 
Successfully connected to gatein management system: [user=root, container='portal', host='xxxxx']
[ /]% ls
mop
[ /]% export -f c:\ mop
File or directory must be absolute.
[ /]% export -f c:\ mop
File or directory must be absolute.
[ /]% export -f c:/ mop
File or directory must be absolute.
[ /]% cd mop/
[mop]% ls
portalsites
groupsites
usersites
[mop]% export -f c:\\ usersites 
File or directory must be absolute.


Actual results:
Export failed.

Expected results:
Export succeeds, zip file getting created in directory defined by the -f parameter

Comment 1 Nick Scavelli 2012-06-28 16:02:22 UTC
The export command could do a better job handling this, but you should be able to replace "c:\" with just "/". Also for multiple drives make sure you are on the drive you want the file to go to before executing the ssh command.


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