Ticket #1651 (new defect)

Opened 3 years ago

Last modified 3 years ago

Workflow scripts are invalid on Windows

Reported by: janguenot Assigned to: fguillaume
Priority: P1 Milestone: CPS 3.5.0
Component: CPS (global) Version: 3.4.0
Severity: blocker Keywords: workflow scripts forum post invalid syntax Runtime error
Cc:

Description (Last modified by janguenot)

The workflow scripts are reported as invalid on Windows system. (Invalid syntax line1). This is not the case on Linux systems though.

As a result this is not possible to use the Forum, for instance, while on Windows since an error occurs while trying to post any message since a Runtime error occurs. Same thing trying to publish anything.

Note, that saving the scripts in the ZMI fixes the problem. (without any modifications)

I guess this might be an encoding problem.

The installation has been done using Zope-2.9.3.exe and CPS-3.4.0 from tarball source.

Windows XP/sp2

If using the exe build then the problem does not occurs.

Can it be a tgz problem on windows ?

Change History

05/18/06 09:53:13 changed by janguenot

  • description changed.

05/18/06 10:24:12 changed by janguenot

  • description changed.

05/18/06 10:31:10 changed by janguenot

  • description changed.

05/18/06 10:32:21 changed by janguenot

  • owner changed from trac to fguillaume.
  • priority changed from P2 to P1.
  • component changed from CPSForum to CPS (global).
  • description changed.
  • summary changed from forum post workflow scripts are invalid on Windows to Workflow scripts are invalid on Windows.

05/18/06 10:37:57 changed by janguenot

  • description changed.

05/18/06 10:42:19 changed by div

I've fixed something similar in #1368, but here it doesn't seem that svn:eol-style=native property is set...

05/18/06 12:55:19 changed by lregebro

This was supposed to be fixed in 2.9.3:

Collector #2061: Fix problems where windows line endings are passed to restricted code compilers.

We'll have to verify that this really still is an issue with 2.9.3. A temporary fix is to open the script in the ZMI and save it.

05/19/06 17:10:17 changed by sfermigier

  • milestone changed from CPS 3.4.1 to CPS 3.4.2.