Commit b125af632a21c23e4b00dccf278f5cfa73b1e01d

Authored by Mark Holtzhausen
1 parent b9dd3a20

Download Error Fix

ktwebservice/KTDownloadManager.inc.php
@@ -105,6 +105,8 @@ class KTDownloadManager @@ -105,6 +105,8 @@ class KTDownloadManager
105 'document_id'=>$doc_id, 105 'document_id'=>$doc_id,
106 'session'=>$this->session, 106 'session'=>$this->session,
107 'download_date'=>date('Y-m-d H:i:s'), 107 'download_date'=>date('Y-m-d H:i:s'),
  108 + 'content_version'=>$document->document->getContentVersionId(),
  109 + 'filesize'=>$document->document->getFileSize(),
108 'hash'=>$hash 110 'hash'=>$hash
109 ), 111 ),
110 array('noid'=>true) 112 array('noid'=>true)
lib/documentmanagement/Document.inc
@@ -169,6 +169,8 @@ class Document { @@ -169,6 +169,8 @@ class Document {
169 169
170 function getStoragePath() { return $this->_oDocumentContentVersion->getStoragePath(); } 170 function getStoragePath() { return $this->_oDocumentContentVersion->getStoragePath(); }
171 function setStoragePath($sNewValue) { $this->_oDocumentContentVersion->setStoragePath($sNewValue); } 171 function setStoragePath($sNewValue) { $this->_oDocumentContentVersion->setStoragePath($sNewValue); }
  172 +
  173 + function getContentVersion(){return $this->_oDocumentContentVersion->getVersion();}
172 174
173 175
174 176
webservice/clienttools/services/3.6.1/kt.php
@@ -482,7 +482,7 @@ class kt extends client_service { @@ -482,7 +482,7 @@ class kt extends client_service {
482 */ 482 */
483 483
484 $response['status_code']=0; 484 $response['status_code']=0;
485 - $response['message']=$url; 485 + $response['message']=$url.'&apptype='.$params['app_type'];
486 $response['filename']=$docname; 486 $response['filename']=$docname;
487 $this->addDebug('effective params',$params); 487 $this->addDebug('effective params',$params);
488 $this->setResponse($response); 488 $this->setResponse($response);
@@ -651,8 +651,7 @@ class kt extends client_service { @@ -651,8 +651,7 @@ class kt extends client_service {
651 $this->response= array('status_code'=>0, 'document_id'=>$document_id, 'content_id'=>$content_id); 651 $this->response= array('status_code'=>0, 'document_id'=>$document_id, 'content_id'=>$content_id);
652 } 652 }
653 653
654 -  
655 - function get_all_client_policies(){ 654 + function get_all_client_policies(){
656 $config=KTConfig::getSingleton(); 655 $config=KTConfig::getSingleton();
657 $this->addDebug('KTConfig Singleton',$config); 656 $this->addDebug('KTConfig Singleton',$config);
658 657