Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-4365

Widget UrlReference: Check URL as long request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.10.2, 4.9.15, 4.11.0
    • None
    • None
    • None
    • 4.11M1
    • Oui

      Steps to reproduce

      1. Have a reference attribute (in a content type), with the widget param checkUrlValidity to true.
      2. Open a content of this content type on modification mode.
      3. Set an invalid URL in the attribute with a very long timeout.
      4. Wait... (about 2 minutes)
      5. We can lost the connection with the CMS.

      Example of attribute:

          <attribute name="myLink" type="reference">
              <label i18n="false">My link</label>
              <description i18n="false">My link</description>
              <widget-params>
                  <checkUrlValidity>true</checkUrlValidity>
              </widget-params>
              <validation>
                  <custom-validator class="org.ametys.cms.contenttype.validation.ReferenceValidator" />
                  <regexp>^https?://.*$</regexp>
                  <invalidText i18n="true">plugin.core:PLUGINS_CORE_REGEXP_INVALID_HTTP_URL_START</invalidText>
              </validation>
          </attribute>

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: