Skip to content

Event details show workflows of unrelated events #908

@Nepoh

Description

@Nepoh

Due to an issue during index rebuild, I am dealing with some events without any workflows right now. While debugging the problem, I came across some strange behavior in the admin ui:

First, the event's workflows tab shows an empty list:
screenshot

This is expected, as the corresponding request to Opencast failed:

Details
GET https://opencast.example.com/admin-ng/event/c7648b1a-42e1-4df2-9dc2-9b23d4daaced/workflows.json
< HTTP/2 500 Internal Server Error
< server: nginx
< date: Tue, 10 Sep 2024 10:29:51 GMT
< content-type: application/json
< content-length: 380
< cache-control: must-revalidate,no-cache,no-store
< access-control-allow-credentials: true
< X-Firefox-Spdy: h2
{
"cause1":"java.lang.NullPointerException",
"servlet":"/admin-ng/event",
"cause0":"com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException",
"message":"com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException",
"url":"/admin-ng/event/c7648b1a-42e1-4df2-9dc2-9b23d4daaced/workflows.json",
"status":"500"
}

But, after displaying another event's details and returning to the original event, that other event's workflows are suddenly shown:
screenshot_3

I guess having events without any workflows attached should be quite uncommon, but displaying another events' workflows probably should not happen in any case and may indicate a bug somewhere in the admin ui?

EIDT: Currently on Opencast 16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions