Steps to reproduce
- Have a reference attribute (in a content type), with the widget param checkUrlValidity to true.
- Open a content of this content type on modification mode.
- Set an invalid URL in the attribute with a very long timeout.
- Wait... (about 2 minutes)
- 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>