Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3076

Filetranslation download fails when clicking multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • None
    • InstantTranslate
    • High

    Description

      problem

      • Use InstantTranslate FileTranslation
      • Assume a 2MB file, importable via Okapi, resulting in ~2.000 segments
      • Now if the import and pre-translation is finished, and the download link is available in instanttranslate click 3-4 times on the download link.

      This should lead to errors like:

      ERROR in core: E9999 - Requested file not found!
      
      Exception:ZfExtended_NotFoundException
      Level:ERROR
      Errorcode:E9999
      Message:Requested file not found!
      Domain:core
      Version:5.7.11
      File (Line):/webs/instance-XXX/application/modules/editor/Controllers/TaskController.php (1711)
      User:XXX (XX XX) ({6fef4f9d-a718-11eb-b040-c2d81394b7aa})
      Request:GET /editor/task/export/id/XXX?format=filetranslation
      Trace:
          #0 /webs/instance-XXX/application/modules/editor/Controllers/TaskController.php(1643): editor_TaskController->provideFiletranslationDownload()
          #1 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): editor_TaskController->exportAction()
          #2 /webs/instance-XXX/library/ZfExtended/Controllers/AAARestController.php(315): Zend_Controller_Action->dispatch()
          #3 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch()
          #4 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
          #5 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
          #6 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Application.php(399): Zend_Application_Bootstrap_Bootstrap->run()
          #7 /webs/instance-XXX/library/ZfExtended/Application.php(47): Zend_Application->run()
          #8 /webs/instance-XXX/library/ZfExtended/BaseIndex.php(151): ZfExtended_Application->run()
          #9 /webs/instance-XXX/public/index.php(35): ZfExtended_BaseIndex->startApplication()
          #10 {main}
      Request:
      Array
      (
          [format] => filetranslation
      )
       

      and

      ERROR in core: E9999 - DirectoryIterator::__construct(/webs/instance-XXX/application/../data/editorImportedTasks/2e39a0eb-d6fa-4e2d-8c26-9888158bad5b/{2e39a0eb-d6fa-4e2d-8c26-9888158bad5b}): Failed to open directory: Datei oder Verz
      
      
      Exception:UnexpectedValueException
      Level:ERROR
      Errorcode:E9999
      Message:DirectoryIterator::__construct(/webs/instance-XXX/application/../data/editorImportedTasks/2e39a0eb-d6fa-4e2d-8c26-9888158bad5b/{2e39a0eb-d6fa-4e2d-8c26-9888158bad5b}):
       Failed to open directory: Datei oder Verzeichnis nicht gefunden
      Domain:core
      Version:5.7.11
      File (Line):/webs/instance-XXX/library/ZfExtended/Utils.php (176)
      User:XXX (XX XX) ({6fef4f9d-a718-11eb-b040-c2d81394b7aa})
      Request:GET /editor/task/export/id/XXX?format=filetranslation
      Trace:
          #0 /webs/instance-XXX/library/ZfExtended/Utils.php(176): DirectoryIterator->__construct()
          #1 /webs/instance-XXX/library/ZfExtended/Controllers/helpers/Recursivedircleaner.php(42): ZfExtended_Utils::recursiveDelete()
          #2 /webs/instance-XXX/application/modules/editor/Controllers/TaskController.php(1705): ZfExtended_Controller_Helper_Recursivedircleaner->delete()
          #3 /webs/instance-XXX/application/modules/editor/Controllers/TaskController.php(1710): editor_TaskController->{closure}()
          #4 /webs/instance-XXX/application/modules/editor/Controllers/TaskController.php(1643): editor_TaskController->provideFiletranslationDownload()
          #5 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): editor_TaskController->exportAction()
          #6 /webs/instance-XXX/library/ZfExtended/Controllers/AAARestController.php(315): Zend_Controller_Action->dispatch()
          #7 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch()
          #8 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
          #9 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
          #10 /webs/instance-XXX/vendor/shardj/zf1-future/library/Zend/Application.php(399): Zend_Application_Bootstrap_Bootstrap->run()
          #11 /webs/instance-XXX/library/ZfExtended/Application.php(47): Zend_Application->run()
          #12 /webs/instance-XXX/library/ZfExtended/BaseIndex.php(151): ZfExtended_Application->run()
          #13 /webs/instance-XXX/public/index.php(35): ZfExtended_BaseIndex->startApplication()
          #14 {main}
      Request:
      Array
      (
          [format] => filetranslation
      )
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlauria Thomas Lauria
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: