Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333815 - confusing behavior when 'output dir' passed to configuro -o contains a dot '.' char
Summary: confusing behavior when 'output dir' passed to configuro -o contains a dot '....
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 19:52 EST by Chris Ring CLA
Modified: 2016-02-17 18:42 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ring CLA 2011-01-09 19:52:40 EST
A dot '.' char is a special character in XDC.  If configuro is passed a folder name with a '.' in it (e.g. "configuro -o foo.bar"), strange errors ensue (a pkg with a nested namespace is created and "things in the generated pkg get confused").

It's probably ok to restrict output folder to not having a '.' in it, but configuro should validate the outdir arg early - perhaps for '.' and other reserved chars - and provide a meaningful error.
Comment 1 Dave Russo CLA 2012-01-12 18:38:31 EST
the configuro output directory name is constrained to be a valid package name.  It must, therefore be a valid C identified name.

Unfortunately, this constraint is not checked and, as a result bizarre errors (from the user's point of view) result.
Comment 2 Dave Russo CLA 2012-01-12 19:43:23 EST
fixed by adding additional check of generated package name in mkpkg.xdt (r1609, for xdctools 3.24).
Comment 3 Dave Russo CLA 2016-01-12 00:48:56 EST
closing bugs that have been in resolved state for more than a year
Comment 4 Dave Russo CLA 2016-02-17 18:42:38 EST
in fixed state for more than one year