[GRASS-dev] [bug #5182] (grass) parser: allows for '@' in map names

this bug's URL: http://intevation.de/rt/webrt?serial_num=5182
-------------------------------------------------------------------------

Subject: parser: allows for '@' in map names

1. A command that creates a vector map:

$ v.random out=map1@bogus n=10
$ g.list vect
----------------------------------------------
vector files available in mapset breach:
map1@bogus

It works, but it shouldn't. You can't do anything with the vector created, not
even remove it:

$ g.remove vect=map1@bogus
G__open(r): mapset (breach) doesn't match xmapset (bogus)
ERROR: Vector map <map1@bogus> not found

2. A command that creates a vector and a table:

$ v.mkgrid map=map2@bogus grid=1,1 position=region
dbmi: Protocol error
ERROR: Cannot create table: create table map2@bogus ( cat integer, row
       integer, col integer, rown varchar(1), coln varchar(1))

Vector is created though, in error.

3. Creating rasters:

$ r.random.cells dist=1 out=map3@bogus
WARNING: opencell: map3@bogus - bad mapset
ERROR: r.random.cells: unable to open new raster map [map3@bogus]

The map is not created, but the module attempts to create it, only it fails to
in the very end. While it shouldn't even try creating it.

Maciek

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=5182
---------------------------------------------------------------------

Subject: parser: allows for '@' in map names

G_legal_filename() in lib/gis/legal_name.c needs updating.

see Glynn's comments from last month:
  http://thread.gmane.org/gmane.comp.gis.grass.devel/15033/focus=15042

Hamish

On Mon, 2006-10-02 at 22:20 +0200, Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=5182
-------------------------------------------------------------------------

Subject: parser: allows for '@' in map names

Fixed in CVS.

--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785