dockstore / dockstore

Our VM/Docker sharing infrastructure and management component
https://dockstore.org/
Apache License 2.0
116 stars 27 forks source link

RegEx errors in edit version tag #5906

Open coverbeck opened 2 weeks ago

coverbeck commented 2 weeks ago

Describe the bug I noticed several errors in the console when editing a version tag. I assume they're being ignored by the browser, that the browser is not validating the input, but I'm not sure.

To Reproduce Steps to reproduce the behavior:

  1. Log on to Dockstore
  2. Go to My Tools
  3. Select a tool, then go to versions tab
  4. For a version, click Actions | Edit
  5. See following errors in Developer Tools console
Unable to check <input pattern='[\w-]+((/|.)[\w-]+)*'> because the pattern is not a valid regexp: character class escape cannot be used in class range in regular expression
Unable to check <input pattern='^/([^/?:*|<>]+/)*(([a-zA-Z]+[.])?Dockerfile|Dockerfile([.][a-zA-Z]+)?)$'> because the pattern is not a valid regexp: invalid character in class in regular expression
Unable to check <input pattern='^/([^/?:*|<>]+/)*[^/?:*|<>]+.(cwl|yaml|yml)'> because the pattern is not a valid regexp: invalid character in class in regular expression
Unable to check <input pattern='^/([^/?:*|<>]+/)*[^/?:*|<>]+.wdl$'> because the pattern is not a valid regexp: invalid character in class in regular expression

Expected behavior There should be no errors in the console

Additional context [Domain] - https://qa.dockstore.org

Webservice - 74674f8

UI - 2.12.1-55-gb4a52e78

Deploy - 1.15.1-46-ga8934fc

cwlParsingLambdaVersion: n/a

wdlParsingLambdaVersion: n/a

nextflowParsingLambdaVersion: n/a

galaxyParsingLambdaVersion: 0.0.6

checkUrlLambdaVersion: n/a

┆Issue is synchronized with this Jira Story ┆Issue Number: DOCK-2533 ┆Sprint: Backlog ┆Issue Type: Story