Projet

Général

Profil

Actions

Anomalie #5487

fermé

Double indexation des attributs calculés de type fichier.

Ajouté par Jérôme Augé il y a environ 11 ans. Mis à jour il y a plus de 10 ans.

Statut:
Intégré
Priorité:
Normal
Assigné à:
Version cible:
Début:
24/04/2015
Echéance:
% réalisé:

100%

Temps estimé:
Version source:
Solution proposée:
Principaux fichiers impactés:
Complexité:
Contrôle:
Thème:
Socle technique
Régression:
Non

Description

Soit un attribut `single_file` de type fichier et un deuxième attribut `single_file_pdf` de type fichier calculé avec la méthode `::convertVaultFile(ATTR_X,'pdf)`.

Alors, lors de la création d'un document en renseignant un fichier dans l'attribut `single_file` j'observe que la conversion pour l'indexation de l'attribut `single_file_pdf` est émise deux fois de suite ((3) et (4)) :

(1) Conversion du fichier ODT de `single_file` en PDF pour `single_file_pdf`

    CONVERT
    <TE name="pdf" fkey="38" fname="37.odt" size="84727" mime="application/vnd.oasis.opendocument.text" callback="http://.../?authtype=open&privateid=3c15b0a22a83aca1858711240137b5724ae612a8&sole=Y&app=FDL&action=INSERTFILE&engine=pdf&vidin=37&vidout=38&isimage=&docid=1056"/

(2) Indexation du fichier ODT de ATTR_X

    CONVERT
    <TE name="utf8" fkey="37" fname="37.odt" size="84727" mime="application/vnd.oasis.opendocument.text" callback="http://.../?authtype=open&privateid=d1cf3d17b2bf7c8f708b09bc1b05372cf3185376&sole=Y&app=FDL&action=SETTXTFILE&docid=1056&attrid=single_file&index=-1"/>

(3) Indexation du fichier PDF de ATTR_Y  

    CONVERT
    <TE name="utf8" fkey="38" fname="38.pdf" size="23" mime="text/plain" callback="http://.../?authtype=open&privateid=5a55c5ca98eb32bf5aed927d4a0f369b21fa5ca7&sole=Y&app=FDL&action=SETTXTFILE&docid=1056&attrid=single_file_pdf&index=-1"/>

(4) Indexation du fichier PDF de ATTR_Y : cette transformation est une répétition de (3) !

    CONVERT
    <TE name="utf8" fkey="38" fname="38.pdf" size="23" mime="text/plain" callback="http://.../?authtype=open&privateid=8504752ad353377bf77c6cb33919e9cb992a01d1&sole=Y&app=FDL&action=SETTXTFILE&docid=1056&attrid=single_file_pdf&index=-1"/>

Mis à jour par Éric Brison il y a environ 11 ans

L'émission est émise 2 fois car deux fichiers sont créés. Le premier est un fichier temporaire indiquant la conversion en cours,
le second le resultat de la transformation

Mis à jour par Marc Claverie il y a plus de 10 ans

  • Statut changé de Nouveau à Assigné
  • Assigné à mis à Jérôme Augé
  • Version cible mis à 3.2.20

Mis à jour par Jérôme Augé il y a plus de 10 ans

Stacktrace des appels à `Dcp\TransformationEngine\Client::sendTransformation()` :

[16-Sep-2015 15:23:18 Europe/Berlin] PHP Notice:  Dcp\TransformationEngine\Client::sendTransformation(pdf, 1152, /var/www/test/vaultfs/1/1151.odt, http://localhost/test/?authtype=open&privateid=bdebea55371c32eed3e2b09a3d215098b9365db0&sole=Y&app=FDL&action=INSERTFILE&engine=pdf&vidin=1151&vidout=1152&isimage=&docid=35790) in /var/www/test/TENGINE_CLIENT/Class.TEClient.php on line 94
[16-Sep-2015 15:23:18 Europe/Berlin] PHP Stack trace:
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   1. {main}() /var/www/test/admin.php:0
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   2. ActionRouter->executeAction() /var/www/test/admin.php:85
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   3. executeAction() /var/www/test/WHAT/Class.ActionRouter.php:37
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   4. Action->execute() /var/www/test/WHAT/Lib.Main.php:339
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   5. generic_mod() /var/www/test/WHAT/Class.Action.php:602
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   6. modcard() /var/www/test/GENERIC/generic_mod.php:46
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   7. Doc->refresh() /var/www/test/FDL/modcard.php:171
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   8. Dcp\Family\Dev_5487->SpecRefreshGen() /var/www/test/FDL/Class.Doc.php:5823
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   9. Doc->specRefreshGenAttribute() /var/www/test/FDLGEN/Class.Doc35787.php:100
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  10. Doc->applyMethod() /var/www/test/FDL/Class.Doc.php:5803
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  11. call_user_func_array() /var/www/test/FDL/Class.Doc.php:4423
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  12. Doc->convertVaultFile() /var/www/test/FDL/Class.Doc.php:4423
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  13. vault_generate() /var/www/test/FDL/Class.Doc.php:2581
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  14. Dcp\TransformationEngine\Client->sendTransformation() /var/www/test/FDL/Lib.Vault.php:83
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  15. trigger_error() /var/www/test/TENGINE_CLIENT/Class.TEClient.php:94

[16-Sep-2015 15:23:18 Europe/Berlin] PHP Notice:  Dcp\TransformationEngine\Client::sendTransformation(utf8, 1152, /var/www/test/vaultfs/1/1152.pdf, http://localhost/test/?authtype=open&privateid=d02e80ec911f6ff87caede9fba90a819c698f48f&sole=Y&app=FDL&action=SETTXTFILE&docid=35790&attrid=single_file_pdf&index=-1) in /var/www/test/TENGINE_CLIENT/Class.TEClient.php on line 94
[16-Sep-2015 15:23:18 Europe/Berlin] PHP Stack trace:
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   1. {main}() /var/www/test/admin.php:0
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   2. ActionRouter->executeAction() /var/www/test/admin.php:85
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   3. executeAction() /var/www/test/WHAT/Class.ActionRouter.php:37
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   4. Action->execute() /var/www/test/WHAT/Lib.Main.php:339
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   5. generic_mod() /var/www/test/WHAT/Class.Action.php:602
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   6. modcard() /var/www/test/GENERIC/generic_mod.php:46
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   7. Doc->refresh() /var/www/test/FDL/modcard.php:171
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   8. DbObj->modify() /var/www/test/FDL/Class.Doc.php:5826
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   9. Doc->PostUpdate() /var/www/test/WHAT/Class.DbObj.php:494
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  10. Doc->sendTextToEngine() /var/www/test/FDL/Class.Doc.php:994
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  11. sendTextTransformation() /var/www/test/FDL/Class.Doc.php:3738
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  12. Dcp\TransformationEngine\Client->sendTransformation() /var/www/test/FDL/Lib.Vault.php:199
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  13. trigger_error() /var/www/test/TENGINE_CLIENT/Class.TEClient.php:94

[16-Sep-2015 15:23:18 Europe/Berlin] PHP Notice:  Dcp\TransformationEngine\Client::sendTransformation(utf8, 1152, /var/www/test/vaultfs/1/1152.pdf, http://localhost/test/?authtype=open&privateid=910ecceb0b4b7315eb7b4b338e682cb61af9cf64&sole=Y&app=FDL&action=SETTXTFILE&docid=35790&attrid=single_file_pdf&index=-1) in /var/www/test/TENGINE_CLIENT/Class.TEClient.php on line 94
[16-Sep-2015 15:23:18 Europe/Berlin] PHP Stack trace:
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   1. {main}() /var/www/test/admin.php:0
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   2. ActionRouter->executeAction() /var/www/test/admin.php:85
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   3. executeAction() /var/www/test/WHAT/Class.ActionRouter.php:37
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   4. Action->execute() /var/www/test/WHAT/Lib.Main.php:339
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   5. Layout->gen() /var/www/test/WHAT/Class.Action.php:618
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   6. Layout->ParseZone() /var/www/test/WHAT/Class.Layout.php:620
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   7. preg_replace_callback() /var/www/test/WHAT/Class.Layout.php:290
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   8. Layout->{closure:/var/www/test/WHAT/Class.Layout.php:286-289}() /var/www/test/WHAT/Class.Layout.php:290
[16-Sep-2015 15:23:18 Europe/Berlin] PHP   9. Layout->execute() /var/www/test/WHAT/Class.Layout.php:288
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  10. Action->execute() /var/www/test/WHAT/Class.Layout.php:364
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  11. viewcard() /var/www/test/WHAT/Class.Action.php:602
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  12. Doc->refresh() /var/www/test/FDL/viewcard.php:161
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  13. DbObj->modify() /var/www/test/FDL/Class.Doc.php:5826
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  14. Doc->PostUpdate() /var/www/test/WHAT/Class.DbObj.php:494
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  15. Doc->sendTextToEngine() /var/www/test/FDL/Class.Doc.php:994
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  16. sendTextTransformation() /var/www/test/FDL/Class.Doc.php:3738
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  17. Dcp\TransformationEngine\Client->sendTransformation() /var/www/test/FDL/Lib.Vault.php:199
[16-Sep-2015 15:23:18 Europe/Berlin] PHP  18. trigger_error() /var/www/test/TENGINE_CLIENT/Class.TEClient.php:94

Sont émis :
- 1 x demande de conversion du ODT en PDF
- 2 x demandes d'extraction de texte depuis le PDF

Apache `access.log` :

127.0.0.1 - - [16/Sep/2015:15:23:20 +0200] "GET /test/?authtype=open&privateid=bdebea55371c32eed3e2b09a3d215098b9365db0&sole=Y&app=FDL&action=INSERTFILE&engine=pdf&vidin=1151&vidout=1152&isimage=&docid=35790&tid=55f96d46196821.30080716 HTTP/1.0" 200 429 "-" "-" 
127.0.0.1 - - [16/Sep/2015:15:23:21 +0200] "GET /test/?authtype=open&privateid=d02e80ec911f6ff87caede9fba90a819c698f48f&sole=Y&app=FDL&action=SETTXTFILE&docid=35790&attrid=single_file_pdf&index=-1&tid=55f96d463077d9.42091268 HTTP/1.0" 200 426 "-" "-" 
127.0.0.1 - - [16/Sep/2015:15:23:21 +0200] "GET /test/?authtype=open&privateid=910ecceb0b4b7315eb7b4b338e682cb61af9cf64&sole=Y&app=FDL&action=SETTXTFILE&docid=35790&attrid=single_file_pdf&index=-1&tid=55f96d46939447.18629837 HTTP/1.0" 200 426 "-" "-" 

Sont reçus :
- 1 x résultat PDF (INSERTFILE)
- 2 x résultats d'extraction de texte (SETTXTFILE)

Mis à jour par Jérôme Augé il y a plus de 10 ans

Lorsqu'on crée un document, le fichier n'est pas indexé: le fichier ne semble indexé que si on édite le document et qu'on change le fichier. Un simple éditer/sauver sans modifier le fichier ne lance pas non plus l'indexation.

Mis à jour par Jérôme Augé il y a plus de 10 ans

  • % réalisé changé de 0 à 100

Mis à jour par Éric Brison il y a plus de 10 ans

  • Statut changé de Assigné à Intégré

Appliqué par commit dynacase-core|commit:92d6b114ba86f264967bdbec720a3a27b4a9e353.

Actions

Formats disponibles : Atom PDF