Ticket #1609 (closed defect: worksforme)

Opened 14 years ago

Last modified 10 years ago

CPS 3.4.0-3 does not take into account changes made in Word files with ExternalEditor 0.9.1

Reported by: a.mainar@… Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.0
Component: CPS (global) Version: 3.4.0
Severity: major Keywords:
Cc:

Description

Please find below the description of a problem in the way CPS handles changes in Word files when using ExternalEditor?. As you'll see below, this was discussed yesterday with Chris McDonough? who maintains ExternalEditor?. Our last test suggests that the problem is related with CPS, because modifying Word files directly from the ZMI is ok (changes are stored). Moreover, changes made in Excel or PowerPoint? files from CPS are also stored. Only changes in Word files cause trouble.

Thank you


De : Alain MAINAR a.mainar@… Envoyé : mardi 11 avril 2006 15:50 À : 'cps-users-fr@…' Objet : Modifier en ligne: Prise en compte des modifications fonction du format de fichier

Bonjour, Lors d'une modification de document par la techique de Modifier en ligne (ExternalEditor?), nous constatons le comportement suivant:

  • Fichier de type Excel: Excel s'ouvre bien, les modifications sont bien prises en compte dans CPS après sauvegarde et fermeture de Excel
  • Ficher de type PowerPoint?: Idem
  • Fichier de type Word: Word s'ouvre correctement; cependant les modifications apportées et enregistrées ne "remontent pas" dans CPS à la fermeture du traitement de texte (le document d'origine reste inchangé). Le document reste dans le répertoire temporaire dans lequel ExternalEditor? le place à l'ouverture. Ce document comporte bien les modifications apportées, mais il reste donc coincé dans le répertoire temporaire...

Je n'ai rien trouvé de très éclairant dans les listes de discussion... Quelqu'un aurait-il une idée sur l'origine de cette différence de comportement entre les fichiers Word et les fichiers Excel ou PowerPoint? ? Merci. AM



De : Alain MAINAR a.mainar@…

Envoyé : mardi 11 avril 2006 17:17

À : 'Chris McDonough?'

Objet : RE: Trouble with ExternalEditor?

From the ZMI, it works fine...

The following temp files are created:

-> tmpkbbt-7-localhost,8080,Anomalie_CR_Clinicom.doc

-> ~$pkbbt-7-localhost,8080,Anomalie_CR_Clinicom.doc

-> ~DF1466.tmp

-> ~DF172B.tmp

-> ~DF1A23.tmp

-> ~DF1E05.tmp

-> ~WRF0000.tmp

Modifying & saving leads to two more files:

-> ~DFFDC4.tmp

-> ~DFFE43.tmp

-> ~WRL0002.tmp

Leaving from Word (back to the ZMI) -> All temp files erased; and, most important, changes are stored !

Conclusion: the trouble comes probably from the way NuxeoCPS uses ExternalEditor?.

I'm going to inform the team which works on this product.

Thank you again very much for your help !

Best Regards,

  1. MAINAR

Service informatique

Centre Chirurgical Marie Lannelongue

133 avenue de la Résistance

92350 Le Plessis-Robinson

France


De : Chris McDonough? chrism@… Envoyé : mardi 11 avril 2006 17:02 À : a.mainar@… Objet : Re: Trouble with ExternalEditor?

Hi Alain,

Could you try this without CPS being involved? E.g. upload a Word document into a Zope "File" object in your Zope's root folder via the ZMI and try to invoke external editor against it by clicking on the pencil icon next to it? Are the results the same?

  • C

On Apr 11, 2006, at 10:51 AM, Alain MAINAR wrote:

Thank you for your so quick answer...

Here is the result of a simple experience I've just made:

1- Delete all files in C:\Documents and Settings\alain.mainar\Local Settings\Temp\ -> empty directory

2- Open NuxeoCPS with Internet Explorer

3- Select a Word File to modify -> Ok - ExternalEditor? launches Word, this file opens for changes / 7 files appear in C:\Documents and Settings\alain.mainar\Local Settings\Temp\:

-> ~WRF0000.tmp

-> ~DF7981.tmp

-> ~DF759F.tmp

-> ~DF72A9.tmp

-> ~DF6FE3.tmp

-> ~$pmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file

-> tmpmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file

4- Change a few things in the file

5- Save (from Word, floppy disk icon)

6- Three new files appear in C:\Documents and Settings\alain.mainar \Local Settings\Temp\ (the previous files are still there...):

-> ~DF6416.tmp

-> ~$pmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file.doc

-> tmpmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file.doc

7- Quit from Word

8- Two files remain in C:\Documents and Settings\alain.mainar\Local Settings\Temp\, namely:

-> tmpmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file.doc

-> tmpmrvzd1-localhost,cps,workspaces,gardes-urgences,reseau-ccml,downloadFile,file,file

9- Exiting from NuxeoCPS does not change anything, those two files still remain in the Temp directory. Of course, the Word file has not been updated in CPSNuxeo

The funny thing is that editing Excel or PowerPoint? does not lead to the same result (again starting from an empty temp dir):

1- When ExternalEditor? launches Excel (or PowerPoint?), two new temp files are created in C:\Documents and Settings\alain.mainar\Local Settings\Temp\:

-> ~DF36A9.tmp

-> tmp6ieeqs-localhost,cps,workspaces,gardes-urgences,tableau-excel,downloadFile,file,file

2- Again, a few changes, save, etc... NO NEW TEMP FILES CREATED in C:\Documents and Settings\alain.mainar\Local Settings\Temp\ (AND THIS IS THE BIG DIFFERENCE WITH WORD FILE EDITING !!)

3- Exiting from Excel, and re-opening the modified file: Ok, all changes are there !! AND NO MORE TEMP FILES in C:\Documents and Settings\alain.mainar\Local Settings\Temp\

I guess that the trouble is somewhat related to temp files , but I don't know how...

Thank you for any idea you could have !!!

Best Regards,

  1. MAINAR

Service informatique

Centre Chirurgical Marie Lannelongue

133 avenue de la Résistance

92350 Le Plessis-Robinson

France

-----Message d'origine-----

De : Chris McDonough? chrism@… Envoyé : mardi 11 avril

2006 16:10 À : a.mainar@… Objet : Re: Trouble with

ExternalEditor?

There used to be a bug in the Excel and Word ExternalEditor? plugins that caused a document to not be saved if you didn't explicitly press the "Save" button (i.e. if you quit word/excel on a changed document without saving and answered "yes" to "do you want to save this document?") But I believe these were fixed.

Are you sure that the document data is not being stored by a cache?

I haven't had any bug reports like this in about two years.

On Apr 11, 2006, at 10:05 AM, Alain MAINAR wrote:

Dear Sir,

I have recently installed ExternalEditor? v.0.9.1, but I'm in trouble for the following reason.

When I use ExternalEditor? to edit a file created with Excel or PowerPoint? (2003), everything is allright. All changes made to the file are saved and taken into account (i.e. my Excel or PowerPoint? file is updated - I find all changes made if I re-open the file).

But if I try the same with Word 2003, this does not work. I open the file, ExternalEditors? launches Word, my file opens, I make all necessary changes, and of course I save the all stuff. Then I quit.

Back to NuxeoCPS, if I try to re-open the file, it appears that all changes were lost !!

I've no idea about what can be done...

Could you please help me ?

Thank you very much.

Change History

comment:1 Changed 14 years ago by fguillaume

  • Priority changed from P1 to P2
  • Milestone changed from CPS 3.4.0 to CPS 3.4.1

comment:2 Changed 14 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2

comment:3 Changed 10 years ago by gracinet

  • Status changed from new to closed
  • Resolution set to worksforme

Current ZopeExternalEditor? works fine for me. Clients don't complain.

Note: See TracTickets for help on using tickets.