plantbreeding / IPK-BrAPI-Validator

MIT License
4 stars 3 forks source link

Sheduled test results in server exception #80

Open langeipk opened 7 months ago

langeipk commented 7 months ago

image

When registering a scheduled test for an endpoint URL the erser thows an exeption:

"Unrecognized field "base-url" (class de.ipk_gatersleben.bit.bi.bridge.brapicomp.dbentities.Resource), not marked as ignorable (15 known properties: "submitToRepo", "name", "url", "crop", "provider", "certificate", "id", "email", "v1-url", "v2-url", "logo", "access-token", "lastTestReports", "frequency", "description"])
 at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 14] (through reference chain: de.ipk_gatersleben.bit.bi.bridge.brapicomp.dbentities.Resource["base-url"])"

The reason is an unimplemente attribute for the submitted JSON from the frontend. This bug resulted from the bugfix of #62 in 2022 https://github.com/plantbreeding/IPK-BrAPI-Validator/issues/62

It would most likely be enough to make a change in the front-end JavaScript code. The modal dialog "Set up a periodic report." is still missing the selection of the BrAPI version as in the "Test your own" tab.

Intermediate solution is to disable the "scheduled test" feature but keep it visible in disabled state.