Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7953

Ametys CMS freeze on regexp checking

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Critical Critical
    • 3.8.2
    • 3.8.1
    • None
    • None

      In a specific content, a field is defined as following (URL) with a regexp checking:

      <cms:metadata name="website" type="string">
      	<label i18n="true">CONTENT_EVENT_CONTACT_WEBSITE</label>
      	<description i18n="true">CONTENT_EVENT_CONTACT_WEBSITE_DESC</description>
      	<validation>
         		<regexp>^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\? \.-]*)*\/?$</regexp>
             	<invalidText i18n="true">CONTENT_WEBSITE_REGEXP_INVALID_URL</invalidText>
         	</validation>
      </cms:metadata>
      

      If i paste the following URL for example : http://www.mjc-castanet-tolosan.fr/event/a-sante-hubert/?instance_id=281 the CMS freeze. No error logs.

            Unassigned Unassigned
            dcartier David Cartier-Michaud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: