Merge remote-tracking branch 'origin-UCB/develop' into develop
Merge branch 'develop' of https://bitbucket.org/opencast-community/matterhorn into develop
MH-10125 (related to MH-10039) show recording table when wf has one operation
MH-8930, pop-up appears if user tries to leave the page during upload.

Added a function to the onbeforeunload event.
MH-10313, Incorrect Ingest Parameters cause NullPointerException

Sending invalid data to most of the /ingest/add... endpoints would cause
internal NullPointerExceptions and thus a “500 Internal Server Error” to
be returned to the client.

This patch fixes this behaviour by checking the sanity of the input data
and if necessary and/or sensible returning a “400 Bad Request” instead.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10316 Series endpoint shows non-public series when privileges are changed.

The ACLs (SolrFields.ACCESS_CONTROL_CONTRIBUTE, SolrFields.ACCESS_CONTROL_EDIT and SolrFields.ACCESS_CONTROL_READ) are not cleaned up
in the solr input document and it grows indefinitely. So when a series is changed to public it can never be set to private.

Contribution thanks to the support of the U. of Helsinki.
MH-9976 Search: Searching for a series returns all series

If on the admin page recordings tab you searched for a series, all
recordings were returned without filtering. The cause for this was a
typo in the search field names. This commit fixes this issue.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10318, Remove test.txt

This commit removes a file without purpose from the repository. Looks
like some old test output that was accidentally added.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10294, Fix MH may not build without local DNS entry

This patch replaces a problematic IP address with the local one to run
test against. Posting things to 127.0.0.1:9 should fail as expected as
port 9 is used by the Discard Protocol (just throw any request away) by
default and 127.0.0.1 should not be a problem either.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-9083, Substring Search for Language and License

This commit enables substring search for languages and licenses in the
recording tab of the admin ui.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-8638 [Improvement] Improve service statistics query

This patch improves the query used to get the service statistics. Instead of a join-query the
query is now executed on only one table (mh_job). Together with an additional index the query is
now executing several times faster than before.

This patch requires an update to the database schema (new index).

Further improvements in this area may be made by caching the service statistics. This is al-
though not part of this patch.
Merged in jperrin/matterhorn/t/MH-8930-upload-please-dont-leave (pull request #186)

MH-8930, pop-up appears if user tries to leave the page during upload.
MH-8638 Remove code not related to this issue
MH-10316 Add test
MH-10313, Close InputStreams in IngestService Endpoint

This commit makes sure to properly close input streams at several places
in the ingest service endpoint. In general the streams should now be
closed normally and raise an error if there is a problem. In case of a
previous error, however, IOUtils.closequietly() is used to ensure that
the stream is still properly closed.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10313, Removed additional stream close

As discussed with Lukas during the code review we will just close the
streams silently for now and start a discussion about how to properly
handle things on list.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Merged in lkiesow/matterhorn/t/MH-10313-ingest-nullpointer-exceptions (pull request #224)

MH-10313, Incorrect Ingest Parameters cause NullPointerException
Merged in kdolan/matterhorn-opencast/t/MH-10125-Admin-UI-show-single-op-recording (pull request #142)

MH-10125, Show recording table when wf has one operation
Merge branch 'refs/heads/opencast/r/1.5.0' into opencast/develop
Merged in rubenrua/matterhorn/t/MH-10316-series-endpoint-shows-non-publi (pull request #226)

MH-10316 Series endpoint shows non-public series when privileges are changed.