fn:serialize() must support binary serialization

Bug #867373 reported by Gabriel Petrovay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Won't Fix
Medium
Nicolae Brinza

Bug Description

The serialize function in the serialize module (http://www.zorba-xquery.com/modules/serialize) has been aligned to the new fn:serialize() function. But the current implementation does not support the implementation dependent methods as the serialization spec allows.

This is needed for all the image tests which have currently been disabled.

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

I have re-enabled the image tests since they can use the write-binary function instead.

The problem still remains and Zorba should add this own serialization methods like: json. binary, etc

Changed in zorba:
importance: High → Medium
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

Solving this bug requires (probably) an API change. Escalating to zorba-zoders.

summary: - ser:serialize() must support binary serialization
+ fn:serialize() must support binary serialization
Changed in zorba:
status: New → Opinion
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

What should be the result of the call:

fn:serialize($base64BinaryContent, $params)
(: i.e. readin from a file :)

fn:serialize($xmlData, $params)
(: i.e. XDM data :)

where $params contains the zorba custom binary serialization method?

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

pushed lp:~zorba-coders/zorba/binary_serialization with the current work on this problem

Changed in zorba:
status: Opinion → New
Changed in zorba:
assignee: Gabriel Petrovay (gabipetrovay) → Nicolae Brinza (nbrinza)
milestone: none → 3.0
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

I don't think this feature is required. There exist several alternatives to decode a xs:base64Binary (e.g. file:write-binary). Also, fn:serialize returns a string and can't return binary content.

tags: added: serialization
Changed in zorba:
status: New → Won't Fix
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.