Hi all

I was working on MH-8959, where the problem was that in almost all internal XML 
structures the XML namespaces wasn't set correctly. For example all child 
elements inside the mediapackage node were related to the default namespace 
instead of the mediapackage namespace, with the result that all mediapackages 
were empty from a technical standpoint.

<ns2:mediapackage xmlns:ns2="http://mediapackage.opencastproject.org";>
        <track id=".../>
</ns2>

In this example, the element <mediapackage/> belongs to the namespace 
http://mediapackage.opencastproject.org while <track/> belongs to the default 
namespace and hence *not* to the mediapackage.

To fix this I had to check all JAXB classes, all XPath queries and all 
hardcoded xml files including unit and integration tests. All together I had to 
change about 150 source files! We have tested the fix on our QA servers and it 
seems to be working well.

To share the respondsibility to this big changeset I invited all of the 
commiters to review the changes on 
http://opencast.jira.com/source/cru/CR-MH-462. So everyone should especialy 
have a look at the parts they are experts in, if possible within this week.

*Important!*

With this fix, all XML's with wrong Namespaces will not work as exepcted 
anymore! That means all workflow-definitions, mediapackages, xml's on the file 
system, in the database and in search indices are affected! For those migrating 
from an earlier version to 1.4, this means adjusting the workflow definitions 
and transforming the mediapackages and workflow instances if the old content is 
still relevant.

This change is particularly important for third party integrators and capture 
agent manufacturers that are uploading zipped mediapackages and not using the 
transactional ingest api. If the mediapackage is created from a 1.4 scheduler's 
RSS feed attachment, there should be no problem but if the mediapackages are 
built on the capture agent, the namespace issue applies as well. 

Link to Bug and Review:
http://opencast.jira.com/browse/MH-8958
http://opencast.jira.com/source/cru/CR-MH-462

Lukas
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to