Problem occurs when saving an image with extension that is not by default supported by MITK. The dialog initiated by data manager context menu is calling
void mitk::QmitkIOUtil::SaveImageWithDialog(...) which acquires the list of supported file extensions correctly by calling mitk::CoreObjectFactory::GetInstance()->GetSaveFileExtensions() while a few lines later mitk::IOUtil::SaveImage is called which checks against the hard coded default extensions: in IOUtil::SaveImage the !imageWriter->IsExtensionValid(extension) call fails (mitkIOUtil.cpp line 187) with any non-standard extension.
Suggested solution:
The mitk::FileWriter::IsExtensionValid(std::string extension) method should be re-factored to get the full list of extensions from mitk::CoreObjectFactory.
bool mitk::FileWriter::IsExtensionValid(std::string extension)
{
std::string extListStr(mitk::CoreObjectFactory::GetInstance()->GetFileExtensions()); size_t pos = extListStr.find(extension); if (pos != std::string::npos) return true; else return false;
}