Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-322

fix wrong filename extract from url string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha12
    • None
    • Deployer
    • None

      In the deployer and validator, we use the code to get the filename from url string, like:

      int lastIndex = urlFileName.lastIndexOf(File.separator);
      if (lastIndex != -1)
      urlFileName = urlFileName.substring(lastIndex + 1);
      urlFileName += ".log";

      here is a bug. in the windows machine, File.separator) is "\", but the url.getPath is always return like "file://c/dir/filename", that we get wrong filename

            jeff.zhang_jira Jeff Zhang (Inactive)
            jeff.zhang_jira Jeff Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: