Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing / More robust #5398

Merged
merged 1 commit into from Feb 5, 2021

Conversation

fxprunayre
Copy link
Member

  • Dublin core / Multiple title / Only first one indexed (it will be better managed in DCAT2 plugin providing multilingual support).

  • Invalid role value {{role}} trying to create an invalid field name.

GNIDX-XSL||Invalid element name. Invalid QName {{{role}}OrgForResource} (42)
  • Multiple phones - only the first one is indexed
Error on line 1169 of index.xsl:
  XTTE0790: A sequence of more than one item is not allowed as the first argument of
  gn-fn-index:json-escape() ("02 38 42 24 55", "06 31 14 98 21")
  • Date parsing - more flexible with support for 20170322, 2015-10-18T19:59:30.2675269Z (nanoseconds)
Error parsing ISO DateTimes '20170322'. Error is: Text '20170322' could not be parsed: Unable to obtain ZonedDateTime from TemporalAccessor: {},ISO resolved to 2017-03-22 of type java.time.format.Parsed
  • Email / JSON character to escape. Only one email per contact is indexed.
Parsing invalid JSON node { "organisation":"Direction régionale de l'environnement, de l'aménagement et du logement Centre-Val de Loire", "role":"owner", "email":"###Paramètre "adresse email" dans la fonction "Services INSPIRE"", "website":"", "logo":"", "individual":"", "position":"", "phone":"", "address":"" } for property contactForResource. Error is: Unexpected character ('a' (code 97)): was expecting comma to separate Object entries
 at [Source: (String)"{

* Dublin core / Multiple title / Only first one indexed (it will be better managed in DCAT2 plugin providing multilingual support).

* Invalid role value `{{role}}` trying to create an invalid field name.
```
GNIDX-XSL||Invalid element name. Invalid QName {{{role}}OrgForResource} (42)
```

* Multiple phones - only the first one is indexed
```
Error on line 1169 of index.xsl:
  XTTE0790: A sequence of more than one item is not allowed as the first argument of
  gn-fn-index:json-escape() ("02 38 42 24 55", "06 31 14 98 21")
```

* Date parsing - more flexible with support for 20170322, 2015-10-18T19:59:30.2675269Z (nanoseconds)
```
Error parsing ISO DateTimes '20170322'. Error is: Text '20170322' could not be parsed: Unable to obtain ZonedDateTime from TemporalAccessor: {},ISO resolved to 2017-03-22 of type java.time.format.Parsed
```

* Email / JSON character to escape. Only one email per contact is indexed.
```
Parsing invalid JSON node { "organisation":"Direction régionale de l'environnement, de l'aménagement et du logement Centre-Val de Loire", "role":"owner", "email":"###Paramètre "adresse email" dans la fonction "Services INSPIRE"", "website":"", "logo":"", "individual":"", "position":"", "phone":"", "address":"" } for property contactForResource. Error is: Unexpected character ('a' (code 97)): was expecting comma to separate Object entries
 at [Source: (String)"{
```
@fxprunayre fxprunayre added this to the 4.0.3 milestone Feb 2, 2021
@fxprunayre fxprunayre merged commit 3df6712 into geonetwork:4.0.x Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant