Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2935

Bundle.getEntryPaths and findEntries are returning META-INF/ multiple times

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-3.0.8
    • Fix Version/s: framework-3.2.2
    • Component/s: Framework
    • Labels:
      None

      Description

      Bundle.getEntryPaths("/") and Bundle.findEntries("/", "*", true) return META-INF/ twice. There is no fragment attached, so there is no reason for findEntries to return twice.

      My code looks like this:
      void printEntryPaths(Bundle b, String s) {
      Enumeration e = b.getEntryPaths(s);
      if (e!=null) {
      while (e.hasMoreElements())

      { String next = (String)e.nextElement(); System.out.println(next); printEntryPaths(b, next); }

      }
      }

      void printEntryPaths2(Bundle b, String s) {
      Enumeration e = b.findEntries(s, "*", true);
      if (e != null) {
      while (e.hasMoreElements())

      { URL next = (URL)e.nextElement(); System.out.println(next.getPath()); }

      }
      }

      This seems to be a regression.

        Attachments

        1. FELIX-2935.zip
          7 kB
          Sanjeeb Kumar Sahoo

          Activity

            People

            • Assignee:
              rickhall Richard S. Hall
              Reporter:
              sahoo Sanjeeb Kumar Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: