anushani / atlasmapper

Automatically exported from code.google.com/p/atlasmapper
0 stars 0 forks source link

Adding a fused cached ArcGIS layer to the white list filter by its ID causes a NullPointerException in building client. #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an ArcGIS source with a fused cached layer made up from many 
sub-layers. 
2. Using the data source Black/White layer filter remove all layers then add 
the cached layer based on the layer ID listed in the Client.
For example:
-*
+ts-env_basemaps/national_basemap/
3. Now try to rebuild the client. It will give an undefined error.
4. Changing the white list to use a wild card fixes the problem, and reports 
that there are 88 layers (even though there is really only 1).
+ts-env_basemaps/national_basemap*

What is the expected output? What do you see instead?
Cached layers are fused by many sub-layers that are not individually available. 
As a result it should be treated as a layer. Therefore its layer ID should 
represented in the white list.

Work around:
Use a wildcard to pick up all the sub-layers. These will be fused (logically) 
into one layer in the client.

What version of the product are you using? On what operating system?
1.4.6, Linux server

Original issue reported on code.google.com by eric.law...@gmail.com on 22 Oct 2013 at 2:00

GoogleCodeExporter commented 9 years ago
A slight variant of this problem occurs when adding children layers using the 
following pattern:
+ts-env_pmst/pmst_named_regions/*
It fails but adding a specific child is OK such as 
ts-env_pmst/pmst_named_regions/2_NRMPROG_SDE.nrm_regions but you don't get the 
parent directory, and using the following is OK:
+ts-env_pmst/pmst_named_regions*

Original comment by eric.law...@gmail.com on 22 Oct 2013 at 2:14