Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2414

Regular expressions containing '$' are not processed correctly in Link URL templates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.1, 2.10.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      '$' matches the start of a string in both stevesoft and java Regex. If it is used in a regex validator for a token in one of the customisable links menu entries, odd things happen:
      0. Try this link for a PDB crossreference:
      name: PDB
      template: https://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/MACiE/index.pl?query_pdb=1&pdb=$DB_ACCESSION=/$\d[A-Za-z0-9]{3}/=$

      1. In 2.10.1, the regex doesn't match. It is stored and recovered faithfully to properties.

      2. In the development version of 2.10.2 (with JAL-2316 merged), the regex matches, but it isn't stored and recovered faithfully to the Links preferences - and is corrupted when Jalview is started again.

        Attachments

          Activity

            People

            Assignee:
            jprocter Jim Procter
            Reporter:
            jprocter Jim Procter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: