Filter loadUser lookups to the Sakai user provider with the user pattern

Description

If you edit presenter metadata, Opencast tries to resolve the presenter name as a user, for example:

1 2 3 4 at org.opencastproject.userdirectory.UserAndRoleDirectoryServiceImpl.loadUser(UserAndRoleDirectoryServiceImpl.java:263) at org.opencastproject.index.service.impl.IndexServiceImpl.getTechnicalPresenters(IndexServiceImpl.java:1329) at org.opencastproject.index.service.impl.IndexServiceImpl.updatePresenters(IndexServiceImpl.java:1022) at org.opencastproject.index.service.impl.IndexServiceImpl.createEvent(IndexServiceImpl.java:877)

This leads to loadUser() from user providers being called with what is usually a descriptive name (firstname lastname), not a username.

Apply the user pattern regexp to filter these so the user provider doesn't attempt to resolve them.

Steps to reproduce

None

Status

Assignee

Unassigned

Reporter

Stephen Marquard

Criticality

None

Tags (folksonomy)

None

Components

Fix versions

Affects versions

6.4

Priority

Major
Configure