URLUtils Comparison fails for File vs URL compare
-------------------------------------------------

                 Key: UDIG-1824
                 URL: https://jira.codehaus.org/browse/UDIG-1824
             Project: uDIG
          Issue Type: Bug
          Components: catalog, metadata and search
    Affects Versions: UDIG 1.2.3
            Reporter: Jody Garnett
            Assignee: Jody Garnett
            Priority: Critical


Here is the code in question:
{panel}
if("file".equals(url2.getProtocol())) {
                // take into account file links on linux and osx
                try {
                File file1 = urlToFile(url1);
                String path1 = file1.getCanonicalPath();
                File file2 = urlToFile(url2);
                String path2 = file2.getCanonicalPath();
{panel}                         

We need to update it to say:
{panel}
if("file".equals(url2.getProtocol()) &&
   "file".equals(url1.getProtocol())) {
{panel}
If not it seems that catalog searches fail ... making this a dud release :(


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to