tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

enhancedGetObject should throw error if none of the requested content types are found #79

Open benallenallen opened 8 years ago

benallenallen commented 8 years ago

Right now, if a user calls IContent#enhancedGetObject passing in an array of filetype extensions, the call will return the metadata, but COULD leave the content null since if it didn't find any of the requested content types. It seems like we are lying in our contract if we are returning a response that doesn't actually have any content. This seems to be true for both the Alfresco and Documentum impls.

This has caused a few null pointers in OpenAnnotate's OC code since it assumes if the call said it succeeded that it has content.