chenejac / VIVOTestMigrationJIRA

0 stars 0 forks source link

VIVO-1985: Editing multilingual research overviews results in 'No match to existing literal' #1874

Closed chenejac closed 3 years ago

chenejac commented 3 years ago

Michel Héon (Migrated from VIVO-1985) said:

See VIVO-1983 : likely similar cause

"I managed to create Research overview in en_US and fr_CA . When I created itin German I got the following message:java.lang.Error: No match to existingdata property "http://vivoweb.org/ontology/core#researchOverview"statement for subject "http://localhost:8080/vivo/individual/n2274" via key -813695013"  

chenejac commented 3 years ago

Brian Lowe said:

When the only values for a property are in languages that do not match the current locale, it is not consistent which language is selected.  So one can click the edit button next to one value and the edit form will see only the value from a different language, causing the literal hash not to have anything to match to.

chenejac commented 3 years ago

Brian Lowe said:

Vitro PR: https://github.com/vivo-project/Vitro/pull/236

chenejac commented 3 years ago

Georgy Litvinov said:

There is no more error after pushing button. But changing language at the editing page results to an error . java.lang.Error: No match to existing data property "http://vivoweb.org/ontology/core#researchOverview" statement for subject "http://vivo.mydomain.edu/individual/person6365909" via key 368510876

   

chenejac commented 3 years ago

Georgy Litvinov said:

2021-06-09 13:37:03,818 ERROR [EditRequestDispatchController] java.lang.Error: No match to existing data property "http://vivoweb.org/ontology/core#researchOverview" statement for subject "http://vivo.mydomain.edu/individual/person6365909" via key 368510876 java.lang.Error: No match to existing data property "http://vivoweb.org/ontology/core#researchOverview" statement for subject "http://vivo.mydomain.edu/individual/person6365909" via key 368510876 at edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultDataPropertyFormGenerator.prepareForDataPropUpdate(DefaultDataPropertyFormGenerator.java:130) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo.prepareForDataPropUpdate(EditConfigurationVTwo.java:345) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.BaseEditConfigurationGenerator.prepare(BaseEditConfigurationGenerator.java:81) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultDataPropertyFormGenerator.getEditConfiguration(DefaultDataPropertyFormGenerator.java:106) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.EditRequestDispatchController.makeEditConfigurationVTwo(EditRequestDispatchController.java:450) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.EditRequestDispatchController.setupEditConfiguration(EditRequestDispatchController.java:217) at edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.EditRequestDispatchController.processRequest(EditRequestDispatchController.java:138) at edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet.doGet(FreemarkerHttpServlet.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)

chenejac commented 3 years ago

Georgy Litvinov said:

With new fixes it is possible to create multiple research overviews in each language.

To create second research overview in english switch to other language, click on "edit this enty" button, then switch back to english and modify overview content. Save.

No errors was found.

chenejac commented 3 years ago

Georgy Litvinov said:

https://github.com/vivo-project/Vitro/commit/1e7cc745bc353aed19a87246cc9e396646896c38