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

Unable to create a new event with date property in extendet metadata #937

Open
Nepoh opened this issue Oct 7, 2024 · 0 comments
Open

Unable to create a new event with date property in extendet metadata #937

Nepoh opened this issue Oct 7, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@Nepoh
Copy link

Nepoh commented Oct 7, 2024

When an extended metadata catalog is configured(*) which contains a property of type "date", I am not able to create a new event in the admin UI. After clicking "Create", the UI shows an error message "The event could not be created", probably because the POST request to http://opencast:8080/admin-ng/event/new fails with a 500 Server Error.

Unfortunately, there are no errros in the Opencast log, except

2024-10-07T11:15:02,669 | WARN  | (MetadataJson:340) - Value cannot be parsed as String. Expecting type 'String', but received type 'java.lang.Boolean'.

but this is related to PR #812 I guess...

But the upload succeeds when either using the old admin UI or removing the date property from the catalog configuration.

I tested this on Opencast 16.4 as well as on a fresh Opencast 16.5 allinone Docker image.


(*) The metadata catalog configuration:

type=events
organization=mh_default_org
flavor=example/episode
title=Extended Metadata

xml.rootElement.name=example
xml.rootElement.namespace.URI=http://example.com

xml.namespaceBinding.root.URI=http://example.com
xml.namespaceBinding.root.prefix=
xml.namespaceBinding.terms.URI=http://example.com/metadata/catalog
xml.namespaceBinding.terms.prefix=example

property.name.inputID=name
property.name.label=Name
property.name.type=text
property.name.readOnly=false
property.name.required=false
property.name.namespace=http://example.com/metadata/catalog
property.name.order=10

property.date.inputID=date
property.date.label=Date
property.date.type=date
property.date.pattern=yyyy-MM-dd
property.date.readOnly=true
property.date.required=false
property.date.namespace=http://example.com/metadata/catalog
property.date.order=20
@Arnei Arnei added the type:bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants