Silva SQL Sources: encoding errors in smi

Bug #101446 reported by Marc Petitmermet
12
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Medium
Unassigned

Bug Description

somehow along the development silva-1.3b3 has lost the ability to except non
us-ascii strings in the "columns" field. when i enter the statment (b) in this
field you get an nasty error upon saving the document:

  Error saving your data.
  Response status: 500
  Check your server log for more information.

the log file says:

  Exception Type UnicodeEncodeError
  Exception Value 'ascii' codec can't encode characters
                  in position 124-125: ordinal not in range(128)
  (traceback 2 below)

this error cannot be found in silva-0.9.1.13 and silva-1.1.5. i guess this is a
kupu problem here because the forms editor does not complain.

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.SilvaDocument.Document, line 306, in PUT
  Module Products.SilvaDocument.Document, line 269, in transform_and_store
  Module Products.SilvaDocument.Document, line 180, in editor_storage
  Module Products.SilvaDocument.transform.Transformer, line 51, in to_source
  Module Products.SilvaDocument.transform.base, line 197, in convert
  Module Products.SilvaDocument.transform.kupu.html, line 237, in convert
  Module Products.SilvaDocument.transform.kupu.html, line 272, in convert
  Module Products.SilvaDocument.transform.kupu.html, line 198, in fix_structure
  Module Products.SilvaDocument.transform.kupu.html, line 112, in fix_toplevel
  Module Products.SilvaDocument.transform.kupu.html, line 797, in convert
UnicodeEncodeError: 'ascii' codec can't encode characters in position 124-125:
ordinal not in range(128)

Tags: silva-1.3
Revision history for this message
Guido Wesdorp (guido-infrae) wrote :

Found and reproduced, should be fixed on the current trunk of SilvaDocument.
Please test.

Revision history for this message
Marc Petitmermet (petitmermet) wrote :

tested. works.

Revision history for this message
Guido Wesdorp (guido-infrae) wrote :

Resolving

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.