Hi
I have try to import your metadata in 3.2.2 and the metadata doesn't even
gets imported, checking the log file I see this:
java.lang.IllegalArgumentException: Document contains at least one immense
term in field="attributeTable" (whose UTF8 encoding is longer than the max
length 32766), all of which were skipped. Please correct the analyzer to
not produce such terms. The prefix of the first immense term is: '[10, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 91, 10, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 10, 32, 32, 32, 32, 32, 32]...', original message: bytes can be at
most 32766 in length; got 67484
at
org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:671)
at
org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:342)
at
org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:301)
at
org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:222)
GeoNetwork indexes for iso19110 a field in Lucene call attributeTable that
stores a json document seem with the attribute table and seem some
limitation that should be max. 32766 bytes length. Seem your xml is really
big and exceeds this size.
I have change the configuration of the indexing of this field (see
https://github.com/geonetwork/core-geonetwork/blob/3.2.x/schemas/iso19110/src/main/plugin/iso19110/index-fields/default.xsl#L126-L127)
to don't index the value (so no searchable, but that should not be a issue).
<Field name="attributeTable" index="*false*" store="true"
string="{$jsonAttributeTable}"/>
And with previous change I can edit the metadata, but later fails when
trying to save it, seem tries to post too many form fields and
[WARNING] /geonetwork/srv/api/records/1918/editor
java.lang.IllegalStateException: Form too many keys
at
org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:558)
at org.eclipse.jetty.util.UrlEncoded.decodeTo(UrlEncoded.java:679)
at
org.eclipse.jetty.server.Request.extractFormParameters(Request.java:480)
at
org.eclipse.jetty.server.Request.extractContentParameters(Request.java:412)
I have open this issue to track this:
https://github.com/geonetwork/core-geonetwork/issues/2226
Regards,
Jose García
On Fri, Oct 6, 2017 at 2:03 PM, Jose Garcia <jose.garcia@anonymised.com> wrote:
Hi Emmanuel
Not yet, apologies, quite busy with work. Will try to check this weekend
and let you know additional information.
Regards,
Jose García
On Fri, Oct 6, 2017 at 2:01 PM, Emmanuel Blondel <
emmanuel.blondel1@anonymised.com> wrote:
Dear Jose, did you have a chance to reproduce the issue with the feature
catalog XML i sent you.
Thank you in advance
Le 02/10/2017 à 10:13, Jose Garcia a écrit :
Hi Emmanuel
I'll try to check later today, thanks.
The old API is available in 3.2.2 also.
Regards,
Jose García
On Mon, Oct 2, 2017 at 10:05 AM, Emmanuel Blondel <
emmanuel.blondel1@anonymised.com> wrote:
Hello Jose, see attached one of the record that I can't see, but that i
could push successfully to Geonetwork (together with assigning proper
privileges). Thank you a lot if you could perform some tests on it.
I didn't try with the latest version. I don't have full control on the
webapp deployment where i work, but I could ask later for an upgrade if
there is no solution in 3.0.4. A question about 3.2.2: is the XML API still
available in the 3.2.2 for backward compatibility? or the new REST API
(beta) has completely replaced it?
Thanks in advance
Le 02/10/2017 à 08:13, Jose Garcia a écrit :
Hi Emmanuel
No idea why can be happening this, but I would expect the metadata size
should not be relevant for this. Can you share this record to take a look?
Have you tried also with latest 3.2.2 version?
Regards,
Jose García
On Sat, Sep 30, 2017 at 5:42 PM, Emmanuel Blondel <
emmanuel.blondel1@anonymised.com> wrote:
Hello all,
I'm working on publishing Feature Catalog into GN 3 (version 3.0.4).
Feature catalog are valid according to ISO 19110 and pushed
programmatically through the Geonetwork XML API. The feature catalog are
successfuly pushed to Geonetwork, and can retrieve the xml using
/xml.metadata.get/ service.
When it comes to display into HTML, query it through CSW, and find
through the search, nothing come, Geonetwork gives this message: The record
with identifier*....*was not found or is not shared with you
I've then tried to isolate possible character string issues within the
feature catalogue, but it appear that none was causing the issue. I've
tried to edit progressively the feature catalog, adding element of
<gfc:listedValue> and at some point metadata fail to be displayed and
Geonetwork doesn't recognize it, at a point that I can't edit it anymore
through the UI, and i have to delete it programmatically. File size is
still small: 107kb. With 248 ListedValues, feature catalog is ok, one more
and it fails....
Does the Geonetwork team has idea idea how to solve this?
PS: I had migrated to GN3 because I was facing issues of infinite loop
with ISO 19115, solved with GN3; but in GN2 the above display of ISO 19110
was working very well.
Thank you so much in advance for your help
--
*Emmanuel Blondel*
------------------------------------------------------------
------------------
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/> Veenderweg 13 6721 WD Bennekom The Netherlands
T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts> Please consider the
environment before printing this email. *
--
*Emmanuel Blondel*
International Consultant | CEO
*Geographic Information Systems in Agronomy, Environment, Fishery &
Marine Sciences*
41, Avenue du Vacayrial
81370 Saint Sulpice la Pointe, France
Tel: +33 (0) 6 45 97 87 52 <+33%206%2045%2097%2087%2052>
Website: http://eblondel.github.io
<http://eblondel.github.io/#/services>
Email: emmanuel.blondel1@anonymised.com
--
* Vriendelijke groeten / Kind regards, Jose García
<http://www.geocat.net/> Veenderweg 13 6721 WD Bennekom The Netherlands
T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts> Please consider the
environment before printing this email. *
--
*Emmanuel Blondel*
International Consultant | CEO
*Geographic Information Systems in Agronomy, Environment, Fishery &
Marine Sciences*
41, Avenue du Vacayrial
<https://maps.google.com/?q=41,+Avenue+du+Vacayrial+
+81370+Saint+Sulpice+la+Pointe,+France&entry=gmail&source=g>
81370 Saint Sulpice la Pointe, France
Tel: +33 (0) 6 45 97 87 52 <+33%206%2045%2097%2087%2052>
Website: http://eblondel.github.io/#/services>
Email: emmanuel.blondel1@anonymised.com
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*