Open LauraErhard opened 5 years ago
The double form is fixed for the next version. The creation of a new entry on the post bibliographicEntry interface still raises a validation error. (Resource id/Query string: 5bc6f1700e466f16dff1c0b7) It seems like the validation of the Entry ID (according to the pattern) fails because it does not exist. Are there other attributes that are mandatory for the creation of a new entry, so we can catch faulty entries before transmission? (At the moment even an empty entry can be created which may be of limited use)
Should I see any changes yet in any of our systems? The only thing I see is in the dev version I still get the double form and strange additional text at the beginning of the page: EDIT: I just noticed that the additional text is at the beginning of every edit form/page not just the add new entry to reference list edit page.
@chah3d does it make sense to deploy a new version on dev | on prod? @abdelqader-mohammad I could do it you want me to.
I can't see the unwanted text at the beginning. I have two forms (one for Edit and the other for Create).
@lgalke you can do it, please
I pushed a fix and deployed it on dev and prod. @abdelqader-mohammad the debug information was only shown at dev endpoint. I also now disabled it, there.
2416ed4d2fdbba0443fa44bc405fcddcda68c6b0
Thanks for your quick work, everything looks good now.
But I can't submit
the new entry, I always get the following error:
Error creating entry Object { headers: {…}, status: 400, statusText: "Bad Request", url: "https://locdb.bib.uni-mannheim.de/locdb/bibliographicEntries?bibliographicResourceId=5a548f95fcaa4703f0194ec1", ok: false, name: "HttpErrorResponse", message: "Http failure response for https://locdb.bib.uni-mannheim.de/locdb/bibliographicEntries?bibliographicResourceId=5a548f95fcaa4703f0194ec1: 400 Bad Request", error: {…} }
EDIT: I only filled out the category "raw text", are there any mandatory fields I should have filled out?
We call the entry.create service from the backend. Inspecting the error message, it is caused by a spurious validation check that enforces the 'references' field to be filled with some id.
See the screenshot:
Of course that should not happen at that point, @anlausch needs to tackle this.
I just tried to add another entry to a reference list and I see this after clicking
add entry
: This can't be right. I would expect that I only get the second form.I don't know if the 400 error that follows my
submit
is a consequential error of the first problem but here is the error: