[GeoNetwork-users] How to disable metadata validation?

Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has some schema validation errors. I want to publish the metadata though it has some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute FGI
+358 40 487 9104
kai.koistinen@anonymised.com<mailto:kai.koistinen@anonymised.com>

Hi

In 3.0.x and 3.2.x was added this feature:
https://github.com/geonetwork/core-geonetwork/pull/1659 , but by default
should not do any validation for publishing. Check anyway the Settings
described in the pull request.

Regards,
Jose García

On Mon, Oct 10, 2016 at 12:15 PM, Koistinen Kai (MML) <
kai.koistinen@anonymised.com> wrote:

Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has
some schema validation errors. I want to publish the metadata though it has
some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute
FGI
+358 40 487 9104
kai.koistinen@anonymised.com<mailto:kai.koistinen@anonymised.com
fi>

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi,

I have only the”Enable workflow for record created in the following groups” option available in the UI. I don’t have those 3 extra options that are visible in the PR that you linked.

Regards,
Kai

Lähettäjä: Jose Garcia [mailto:jose.garcia@…444…]
Lähetetty: 10. lokakuuta 2016 13:45
Vastaanottaja: Koistinen Kai (MML) <kai.koistinen@...1538...>
Kopio: geonetwork-users@lists.sourceforge.net
Aihe: Re: [GeoNetwork-users] How to disable metadata validation?

Hi

In 3.0.x and 3.2.x was added this feature: https://github.com/geonetwork/core-geonetwork/pull/1659 , but by default should not do any validation for publishing. Check anyway the Settings described in the pull request.

Regards,
Jose García

On Mon, Oct 10, 2016 at 12:15 PM, Koistinen Kai (MML) <kai.koistinen@...1538...<mailto:kai.koistinen@…1538…>> wrote:
Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has some schema validation errors. I want to publish the metadata though it has some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute FGI
+358 40 487 9104<tel:%2B358%2040%20487%209104>
kai.koistinen@...1538...<mailto:kai.koistinen@…1538…><mailto:kai.koistinen@…1538…>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png\]<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png\]<https://www.facebook.com/geocatbv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png\] <https://twitter.com/geocat_bv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png\] <https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

Hi

Are you using a new database or is migrated from previous version?

For new database, I see the settings should be created: https://github.com/
geonetwork/core-geonetwork/blob/develop/web/src/main/
webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql#L664-L666

Also, the 3.0.5 migration seem fine containing the settings:
https://github.com/geonetwork/core-geonetwork/blob/develop/
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/
v305/migrate-default.sql, unless the upgrade process failed for any reason.

Can you verify if you have that settings in the database?

Regards,
Jose García

On Mon, Oct 10, 2016 at 1:01 PM, Koistinen Kai (MML) <kai.koistinen@
maanmittauslaitos.fi> wrote:

Hi,

I have only the”Enable workflow for record created in the following
groups” option available in the UI. I don’t have those 3 extra options that
are visible in the PR that you linked.

Regards,

Kai

*Lähettäjä:* Jose Garcia [mailto:jose.garcia@anonymised.com]
*Lähetetty:* 10. lokakuuta 2016 13:45
*Vastaanottaja:* Koistinen Kai (MML) <kai.koistinen@anonymised.com>
*Kopio:* geonetwork-users@lists.sourceforge.net
*Aihe:* Re: [GeoNetwork-users] How to disable metadata validation?

Hi

In 3.0.x and 3.2.x was added this feature: https://github.com/ge
onetwork/core-geonetwork/pull/1659 , but by default should not do any
validation for publishing. Check anyway the Settings described in the pull
request.

Regards,

Jose García

On Mon, Oct 10, 2016 at 12:15 PM, Koistinen Kai (MML) <
kai.koistinen@anonymised.com> wrote:

Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has
some schema validation errors. I want to publish the metadata though it has
some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute
FGI
+358 40 487 9104
kai.koistinen@anonymised.com<mailto:kai.koistinen@
maanmittauslaitos.fi>

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/project
s/geonetwork

--

Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <+31318416664>

<https://www.facebook.com/geocatbv&gt; <https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi,

I’m using migrated database. Migration steps have been 3.0.2->3.0.4->3.2.0

I ran those three linked SQL inserts into settings table and it started working. Seems that it tries to validate the metadata by default if these rows are not available in the database. Anyway, it’s working now. Thanks!

Regards,
Kai

Lähettäjä: Jose Garcia [mailto:jose.garcia@…444…]
Lähetetty: 10. lokakuuta 2016 14:31
Vastaanottaja: Koistinen Kai (MML) <kai.koistinen@...1538...>
Kopio: geonetwork-users@lists.sourceforge.net
Aihe: Re: [GeoNetwork-users] How to disable metadata validation?

Hi

Are you using a new database or is migrated from previous version?

For new database, I see the settings should be created: https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql#L664-L666

Also, the 3.0.5 migration seem fine containing the settings: https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v305/migrate-default.sql, unless the upgrade process failed for any reason.

Can you verify if you have that settings in the database?

Regards,
Jose García

On Mon, Oct 10, 2016 at 1:01 PM, Koistinen Kai (MML) <kai.koistinen@...1538...<mailto:kai.koistinen@…1538…>> wrote:
Hi,

I have only the”Enable workflow for record created in the following groups” option available in the UI. I don’t have those 3 extra options that are visible in the PR that you linked.

Regards,
Kai

Lähettäjä: Jose Garcia [mailto:jose.garcia@…444…]
Lähetetty: 10. lokakuuta 2016 13:45
Vastaanottaja: Koistinen Kai (MML) <kai.koistinen@...1538...<mailto:kai.koistinen@…1538…>>
Kopio: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@lists.sourceforge.net>
Aihe: Re: [GeoNetwork-users] How to disable metadata validation?

Hi

In 3.0.x and 3.2.x was added this feature: https://github.com/geonetwork/core-geonetwork/pull/1659 , but by default should not do any validation for publishing. Check anyway the Settings described in the pull request.

Regards,
Jose García

On Mon, Oct 10, 2016 at 12:15 PM, Koistinen Kai (MML) <kai.koistinen@...1538...<mailto:kai.koistinen@…1538…>> wrote:
Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has some schema validation errors. I want to publish the metadata though it has some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute FGI
+358 40 487 9104<tel:%2B358%2040%20487%209104>
kai.koistinen@...1538...<mailto:kai.koistinen@…1538…><mailto:kai.koistinen@…1538…>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png\]<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png\]<https://www.facebook.com/geocatbv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png\] <https://twitter.com/geocat_bv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png\] <https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png\]<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png\]<https://www.facebook.com/geocatbv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png\] <https://twitter.com/geocat_bv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png\] <https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

Hi Kai

Will check the migration configuration, seem 3.0.5 is not configured to
run:
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-db/database_migration.xml

Going to fix it.

Regards,
Jose García

On Mon, Oct 10, 2016 at 2:01 PM, Koistinen Kai (MML) <
kai.koistinen@anonymised.com> wrote:

Hi,

I’m using migrated database. Migration steps have been 3.0.2->3.0.4->3.2.0

I ran those three linked SQL inserts into settings table and it started
working. Seems that it tries to validate the metadata by default if these
rows are not available in the database. Anyway, it’s working now. Thanks!

Regards,

Kai

*Lähettäjä:* Jose Garcia [mailto:jose.garcia@anonymised.com]
*Lähetetty:* 10. lokakuuta 2016 14:31

*Vastaanottaja:* Koistinen Kai (MML) <kai.koistinen@anonymised.com>
*Kopio:* geonetwork-users@lists.sourceforge.net
*Aihe:* Re: [GeoNetwork-users] How to disable metadata validation?

Hi

Are you using a new database or is migrated from previous version?

For new database, I see the settings should be created:
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/
webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql#L664-L666

Also, the 3.0.5 migration seem fine containing the settings:
https://github.com/geonetwork/core-geonetwork/blob/develop/
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/
v305/migrate-default.sql, unless the upgrade process failed for any
reason.

Can you verify if you have that settings in the database?

Regards,

Jose García

On Mon, Oct 10, 2016 at 1:01 PM, Koistinen Kai (MML) <kai.koistinen@
maanmittauslaitos.fi> wrote:

Hi,

I have only the”Enable workflow for record created in the following
groups” option available in the UI. I don’t have those 3 extra options that
are visible in the PR that you linked.

Regards,

Kai

*Lähettäjä:* Jose Garcia [mailto:jose.garcia@anonymised.com]
*Lähetetty:* 10. lokakuuta 2016 13:45
*Vastaanottaja:* Koistinen Kai (MML) <kai.koistinen@anonymised.com>
*Kopio:* geonetwork-users@lists.sourceforge.net
*Aihe:* Re: [GeoNetwork-users] How to disable metadata validation?

Hi

In 3.0.x and 3.2.x was added this feature: https://github.com/
geonetwork/core-geonetwork/pull/1659 , but by default should not do any
validation for publishing. Check anyway the Settings described in the pull
request.

Regards,

Jose García

On Mon, Oct 10, 2016 at 12:15 PM, Koistinen Kai (MML) <kai.koistinen@
maanmittauslaitos.fi> wrote:

Hi,

I'm not able to publish any metadata in GN 3.2.0 because the metadata has
some schema validation errors. I want to publish the metadata though it has
some errors. Can I somehow disable automatic metadata validation in 3.2.0?

Best regards,

Kai Koistinen
Expert
National Land Survey of Finland / Finnish Geospatial Research Institute
FGI
+358 40 487 9104
kai.koistinen@anonymised.com<mailto:kai.koistinen@anonymised.com
fi>

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <+31318416664>

<https://www.facebook.com/geocatbv&gt; <https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

--

Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <+31318416664>

<https://www.facebook.com/geocatbv&gt; <https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*