Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] [jira] Created: (UDIG-1467) Unable to Load Map

Hey Jesse,

My temporary fix for part of this bug was simply to add replaceAll(":", "_") to the resourceName in the ProjectImpl.generateResourceName() function.

I have since discovered a URLUtils.cleanFilename(String) function which replaces all non alphanumeric characters with _ characters. Would it be appropriate to use this function to clean the resourceName instead of the various replaceAll functions we have now?

I'm a little concerned that we may end up with two unique resourcenames having the same generatedResouceName if we do this. What is your opinion?

Emily



Emily Gouge (JIRA) wrote:
Unable to Load Map
------------------

                 Key: UDIG-1467
                 URL: http://jira.codehaus.org/browse/UDIG-1467
             Project: uDIG
          Issue Type: Bug
          Components: open and save
    Affects Versions: UDIG 1.2
Environment: Windows XP; JRE6; using a local tilecache with a tileset called topp:states(EPSG:4326:image/png) Reporter: Emily Gouge
            Assignee: Jesse Eichar
            Priority: Minor
         Attachments: UnableToLoadMap.patch

When you create a map; close udig and reopen it you sometimes get "Unable to Open Map" errors.
One reason for this error is ":" in the map name (as these are not valid in Windows file names).
 I have fixed this for ":" but we might want to get a list of all the invalid characters to ensure it doesn't happen for other characters as well.  Does anyone have a good reference?

I also suspect there are other reasons for the "Unable to Load Map" as well but I haven't tracked them down.





Back to the top