[GeoNetwork-users] XML File Upload vs. XML Copy/Paste

Hi there,
  I was testing the 'Metadata insert' function under Geonetwork 2.6
and encountered the following problem:

1. If I try to upload a piece of metadata in XML to the Geonetwork
catalogue using the 'File Upload' option, with no stylesheet
trasformation and validation turned to on, then everything is OK. The
file is validated, and added to the catalogue.
2. If I try to insert the same piece of metadata to the catalogue
using the 'Copy/Paste' option, with no stylesheet trasformation and
validation turned to on, it fails. Funny thing is that I am getting
the following message: 'Metadata is not valid. Validation against
schema definitions succeeded. Validation against schematron rules
succeeded.'. So, the validation succeeded, yet the metadata is not
valid. Looking at the logs, I can see some Schematron validation
errors, but not really sure what to make of them as I do not have
enough experience with that. The piece of metadata is successfully
uploaded to the catalogue if validation is set to off.

So, my question would be:

Is there any difference between the process of inserting a piece of
metadata using the 'File Upload' option and the process of inserting
one using the 'Copy/Paste' option ?

Thanks,
Cristian

P.S. If not, I could provide an offending piece of metadata for testing.

No input on this issue I am having ? I have had a closer look and
noticed different services are run for an upload compared to a
copy/paste:

- metadata copy/paste runs service 'metadata.insert.paste'
corresponding to class '.services.metadata.Insert'.
- metadata upload runs service 'mef.import' corresponding to class
'.services.mef.Import'.

The same piece of metadata validates ok on upload but fails validation
on a copy/paste insert. In the case it fails I see schematron
validation errors in the logs while there is none when it succeeds.
There is also the confusing message saying schematron validation
succeeded, yet metadata is invalid.

Any ideas ?

Regards,
Cristian

On Tue, Oct 19, 2010 at 11:37 AM, Cristian Codorean
<cristian.codorean@anonymised.com> wrote:

Hi there,
I was testing the 'Metadata insert' function under Geonetwork 2.6
and encountered the following problem:

1. If I try to upload a piece of metadata in XML to the Geonetwork
catalogue using the 'File Upload' option, with no stylesheet
trasformation and validation turned to on, then everything is OK. The
file is validated, and added to the catalogue.
2. If I try to insert the same piece of metadata to the catalogue
using the 'Copy/Paste' option, with no stylesheet trasformation and
validation turned to on, it fails. Funny thing is that I am getting
the following message: 'Metadata is not valid. Validation against
schema definitions succeeded. Validation against schematron rules
succeeded.'. So, the validation succeeded, yet the metadata is not
valid. Looking at the logs, I can see some Schematron validation
errors, but not really sure what to make of them as I do not have
enough experience with that. The piece of metadata is successfully
uploaded to the catalogue if validation is set to off.

So, my question would be:

Is there any difference between the process of inserting a piece of
metadata using the 'File Upload' option and the process of inserting
one using the 'Copy/Paste' option ?

Thanks,
Cristian

P.S. If not, I could provide an offending piece of metadata for testing.

Hi Cristian

I can confirm this behaviour. Using copy&paste i get this:

Metadata is not valid.
Validation against schema definitions succeeded

Validation against schematron rules succeeded

what is really confusing message. While using file upload the file is
uploaded correctly.

I'll open a issue in trac for this.

Thanks and regards,
Jose García

On Wed, Oct 27, 2010 at 11:52 AM, Cristian Codorean <
cristian.codorean@anonymised.com> wrote:

No input on this issue I am having ? I have had a closer look and
noticed different services are run for an upload compared to a
copy/paste:

- metadata copy/paste runs service 'metadata.insert.paste'
corresponding to class '.services.metadata.Insert'.
- metadata upload runs service 'mef.import' corresponding to class
'.services.mef.Import'.

The same piece of metadata validates ok on upload but fails validation
on a copy/paste insert. In the case it fails I see schematron
validation errors in the logs while there is none when it succeeds.
There is also the confusing message saying schematron validation
succeeded, yet metadata is invalid.

Any ideas ?

Regards,
Cristian

On Tue, Oct 19, 2010 at 11:37 AM, Cristian Codorean
<cristian.codorean@anonymised.com> wrote:
> Hi there,
> I was testing the 'Metadata insert' function under Geonetwork 2.6
> and encountered the following problem:
>
> 1. If I try to upload a piece of metadata in XML to the Geonetwork
> catalogue using the 'File Upload' option, with no stylesheet
> trasformation and validation turned to on, then everything is OK. The
> file is validated, and added to the catalogue.
> 2. If I try to insert the same piece of metadata to the catalogue
> using the 'Copy/Paste' option, with no stylesheet trasformation and
> validation turned to on, it fails. Funny thing is that I am getting
> the following message: 'Metadata is not valid. Validation against
> schema definitions succeeded. Validation against schematron rules
> succeeded.'. So, the validation succeeded, yet the metadata is not
> valid. Looking at the logs, I can see some Schematron validation
> errors, but not really sure what to make of them as I do not have
> enough experience with that. The piece of metadata is successfully
> uploaded to the catalogue if validation is set to off.
>
> So, my question would be:
>
> Is there any difference between the process of inserting a piece of
> metadata using the 'File Upload' option and the process of inserting
> one using the 'Copy/Paste' option ?
>
> Thanks,
> Cristian
>
> P.S. If not, I could provide an offending piece of metadata for testing.
>

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America
contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in
marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
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

Hi

You can follow the issue state in
http://trac.osgeo.org/geonetwork/ticket/362

Regards,
Jose García

On Wed, Oct 27, 2010 at 12:16 PM, jose garcia <josegar74@anonymised.com> wrote:

Hi Cristian

I can confirm this behaviour. Using copy&paste i get this:

Metadata is not valid.
Validation against schema definitions succeeded

Validation against schematron rules succeeded

what is really confusing message. While using file upload the file is
uploaded correctly.

I'll open a issue in trac for this.

Thanks and regards,
Jose García

On Wed, Oct 27, 2010 at 11:52 AM, Cristian Codorean <
cristian.codorean@anonymised.com> wrote:

No input on this issue I am having ? I have had a closer look and
noticed different services are run for an upload compared to a
copy/paste:

- metadata copy/paste runs service 'metadata.insert.paste'
corresponding to class '.services.metadata.Insert'.
- metadata upload runs service 'mef.import' corresponding to class
'.services.mef.Import'.

The same piece of metadata validates ok on upload but fails validation
on a copy/paste insert. In the case it fails I see schematron
validation errors in the logs while there is none when it succeeds.
There is also the confusing message saying schematron validation
succeeded, yet metadata is invalid.

Any ideas ?

Regards,
Cristian

On Tue, Oct 19, 2010 at 11:37 AM, Cristian Codorean
<cristian.codorean@anonymised.com> wrote:
> Hi there,
> I was testing the 'Metadata insert' function under Geonetwork 2.6
> and encountered the following problem:
>
> 1. If I try to upload a piece of metadata in XML to the Geonetwork
> catalogue using the 'File Upload' option, with no stylesheet
> trasformation and validation turned to on, then everything is OK. The
> file is validated, and added to the catalogue.
> 2. If I try to insert the same piece of metadata to the catalogue
> using the 'Copy/Paste' option, with no stylesheet trasformation and
> validation turned to on, it fails. Funny thing is that I am getting
> the following message: 'Metadata is not valid. Validation against
> schema definitions succeeded. Validation against schematron rules
> succeeded.'. So, the validation succeeded, yet the metadata is not
> valid. Looking at the logs, I can see some Schematron validation
> errors, but not really sure what to make of them as I do not have
> enough experience with that. The piece of metadata is successfully
> uploaded to the catalogue if validation is set to off.
>
> So, my question would be:
>
> Is there any difference between the process of inserting a piece of
> metadata using the 'File Upload' option and the process of inserting
> one using the 'Copy/Paste' option ?
>
> Thanks,
> Cristian
>
> P.S. If not, I could provide an offending piece of metadata for testing.
>

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America
contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in
marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
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

We have a master geonetwork A harvesting from another smaller geonetwork B, records in B have the view and download privileges set for public users. However after the harvest the download privilege is not set.

This is version 2.4 so may have been fixed. but nice if there is a work around without having to upgrade.

Thanks Andrew

Please consider the environment before printing this email.

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.