Added patch to fix #18700. Updated pom at 1.6.1

migrate-to-catalogue-util-library_#19764
francesco 4 years ago
parent dc518af5a9
commit add4f3a54a

@ -1,4 +1,11 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset
component="org.gcube.portlets-widgets.ckan-metadata-publisher-widget.1-6-1"
date="${buildDate}">
<Change>[Feature #18700] Do not skip regex validation on catalogue
item when a field is empty (UI side)
</Change>
</Changeset>
<Changeset <Changeset
component="org.gcube.portlets-widgets.ckan-metadata-publisher-widget.1-6-0" component="org.gcube.portlets-widgets.ckan-metadata-publisher-widget.1-6-0"
date="${buildDate}"> date="${buildDate}">

@ -13,7 +13,7 @@
<groupId>org.gcube.portlets.widgets</groupId> <groupId>org.gcube.portlets.widgets</groupId>
<artifactId>ckan-metadata-publisher-widget</artifactId> <artifactId>ckan-metadata-publisher-widget</artifactId>
<version>1.6.0-SNAPSHOT</version> <version>1.6.1-SNAPSHOT</version>
<name>gCube Ckan metadata publisher widget</name> <name>gCube Ckan metadata publisher widget</name>
<description> <description>

@ -421,7 +421,16 @@ public class MetaDataFieldSkeleton extends Composite{
* @return a string with the occurred error on error, null otherwise * @return a string with the occurred error on error, null otherwise
*/ */
public String isFieldValueValid(){ public String isFieldValueValid(){
try {
//Feature #18700
String value = getFieldCurrentValue().get(0);
if(value.isEmpty())
return checkValidator(value, field.getValidator()) ? null : MALFORMED_ATTRIBUTE;
}catch (Exception e) {
//continue
}
switch(field.getType()){ switch(field.getType()){
case Boolean : case Boolean :

Loading…
Cancel
Save