Salesforce

WorldServer and Trados Studio - Word documents that have been classified as "Confidential" by the Azure Rights Management cannot be opened/segmented. The error 'Cannot find central directory' appears

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentWorldServer
Symptoms/Context
We are currently working with documents classified with the help of Microsoft's Azure Right Management. The tool classifies documents based on several confidentiality levels that are associated with specific access permissions. Documents classified as Confidential can be accessed by certain users. These users have both read and write permission. When opening such document in Microsoft Word, you will first see this message:

User-added image

If you click Yes or No, you will see this message and the document will not open:

User-added image


We now have the problem that documents that are declared Confidential cannot be processed in WorldServer or opened in Trados Studio. The error is

Completed Segment Asset step of task 2 in time [00:00:00] on engine [XXXXX:clone#165444254:engine#2] with result Error. Execution output: Cannot parse asset data. Details: com.idiominc.ws.filters.FilterParseException: Cannot find central directory

Is there a way to be able to process these documents both in WorldServer or Trados Studio? 

User-added image
 
<SDLErrorDetails time="20.04.2022 11:52:08">
  <ErrorMessage>Cannot find central directory</ErrorMessage>
  <Exception>
    <Type>ICSharpCode.SharpZipLib.Zip.ZipException, ICSharpCode.SharpZipLib, Version=1.2.0.246, Culture=neutral, PublicKeyToken=1b03e6acf1164f73</Type>
    <HelpLink />
    <Source>ICSharpCode.SharpZipLib</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[   at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
   at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(Stream stream, Boolean leaveOpen)
   at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner, Boolean allowParentTraversal)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Infrastructure.Zip.Extract(String filePath)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Core.Services.FileService.ExtractArchive(String archivePath)
   at Sdl.FileTypeSupport.Filters.MicrosoftOffice.Word.Parser.DocxParser.SetFileProperties(IFileProperties properties)
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.CallSetNativeFileProperties(INativeContentCycleAware aware)
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.CallSetNativeFileProperties()
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
   at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Load(IJobExecutionContext context)
   at Sdl.Desktop.Platform.Services.JobRequest.Execute(IJobExecutionContext context)
   at Sdl.Desktop.Platform.Implementation.Services.JobExecuter.Execute(JobData jobData)
   at Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
   at Sdl.Desktop.Platform.Implementation.Services.Job._worker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio16</ProductVersion>
Resolution
In order to segment a source file/asset, both WorldServer and Trados Studio need to be able to access its content. If a document has an access restriction - regardless of how the restriction was applied - WorldServer and/or Trados Studio won't be able to process its content. Please refer to this article for more details:

Trados Studio - when opening a PPTX, XLSX or Word DOCX file, the error 'Cannot find central directory' appears

The resolution is to remove such restriction before submitting the asset to WorldServer (or open it in Trados Studio).
Root Cause
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by