Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-233

ModuleRevisionId encode/decode doesn't work if revision is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4-RC1
    • Core
    • None

    Description

      If the revision is an empty string, the ModuleRevisionId encode/decode methods doesn't work:

      for instance,
      ModuleRevisionId revId = new ModuleRevisionId(new ModuleId("J2EE", "ejb"), "");
      String encoded = revId.encodeToString();
      ModuleRevisionId.decode(encoded);

      this will throw the following exception:
      java.lang.IllegalArgumentException: badly encoded module revision id: 'J2EE:#@#:
      ejb:#@#:'
      at fr.jayasoft.ivy.ModuleRevisionId.decode(ModuleRevisionId.java:105)

      Attachments

        Activity

          People

            xavier Xavier Hanin
            maartenc Maarten Coene
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: