Upload an OPS 3.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload an OPS 3.0

Eric van der Vlist
I can't get upload working with OPS 3.0...

I have tried many things, including:

        <xforms:model>
            <xforms:instance>
                <fusion xmlns="">
                    <modèle/>
                    <données filename="" mediatype="" size=""/>
                </fusion>
            </xforms:instance>
            <xforms:bind nodeset="/fusion/données" type="xs:base64Binary"/>
            <xforms:submission id="fusionne" method="post" replace="all"
                action="/sandbox/fusion"/>
...

And I always get a stack trace that says:

 "Unsupported type: {http://www.w3.org/2001/XMLSchema}anyURI"

...

oxf:/ops/xforms/xforms-server-submit.xpl 53 43 executing processor
(name='{http://www.orbeon.com/oxf/processors}xforms-server')
<p:processor name="oxf:xforms-server">...</p:processor>

...

org.orbeon.oxf.xforms.XFormsUtils convertUploadTypes XFormsUtils.java
383

What do I get wrong?

Thanks,

Eric

PS: OPS 3.0 stack traces are beautiful on screen but not easy to
copy/paste!
--
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Upload an OPS 3.0

Eric van der Vlist
In fact, that's working with

<xforms:bind nodeset="/fusion/données" type="xs:anyURI"/> but not with
type="xs:base64Binary" that you'd advised yesterday :-) ...

Eric

Le jeudi 01 décembre 2005 à 14:52 +0100, Eric van der Vlist a écrit :

> I can't get upload working with OPS 3.0...
>
> I have tried many things, including:
>
>         <xforms:model>
>             <xforms:instance>
>                 <fusion xmlns="">
>                     <modèle/>
>                     <données filename="" mediatype="" size=""/>
>                 </fusion>
>             </xforms:instance>
>             <xforms:bind nodeset="/fusion/données" type="xs:base64Binary"/>
>             <xforms:submission id="fusionne" method="post" replace="all"
>                 action="/sandbox/fusion"/>
> ...
>
> And I always get a stack trace that says:
>
>  "Unsupported type: {http://www.w3.org/2001/XMLSchema}anyURI"
>
> ...
>
> oxf:/ops/xforms/xforms-server-submit.xpl 53 43 executing processor
> (name='{http://www.orbeon.com/oxf/processors}xforms-server')
> <p:processor name="oxf:xforms-server">...</p:processor>
>
> ...
>
> org.orbeon.oxf.xforms.XFormsUtils convertUploadTypes XFormsUtils.java
> 383
>
> What do I get wrong?
>
> Thanks,
>
> Eric
>
> PS: OPS 3.0 stack traces are beautiful on screen but not easy to
> copy/paste!
> pièce jointe document plein texte (message-footer.txt)
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Upload an OPS 3.0

Erik Bruchez
Administrator
I have found one, maybe two new bugs with upload (one which impacts
upload within repeat only, one which regards types). Checking on that now!

-Erik

Eric van der Vlist wrote:

> In fact, that's working with
>
> <xforms:bind nodeset="/fusion/donn?es" type="xs:anyURI"/> but not with
> type="xs:base64Binary" that you'd advised yesterday :-) ...
>
> Eric
>
> Le jeudi 01 d?cembre 2005 ? 14:52 +0100, Eric van der Vlist a ?crit :
>
>>I can't get upload working with OPS 3.0...
>>
>>I have tried many things, including:
>>
>>        <xforms:model>
>>            <xforms:instance>
>>                <fusion xmlns="">
>>                    <mod?le/>
>>                    <donn?es filename="" mediatype="" size=""/>
>>                </fusion>
>>            </xforms:instance>
>>            <xforms:bind nodeset="/fusion/donn?es" type="xs:base64Binary"/>
>>            <xforms:submission id="fusionne" method="post" replace="all"
>>                action="/sandbox/fusion"/>
>>...
>>
>>And I always get a stack trace that says:
>>
>> "Unsupported type: {http://www.w3.org/2001/XMLSchema}anyURI"
>>
>>...
>>
>>oxf:/ops/xforms/xforms-server-submit.xpl 53 43 executing processor
>>(name='{http://www.orbeon.com/oxf/processors}xforms-server')
>><p:processor name="oxf:xforms-server">...</p:processor>
>>
>>...
>>
>>org.orbeon.oxf.xforms.XFormsUtils convertUploadTypes XFormsUtils.java
>>383
>>
>>What do I get wrong?
>>
>>Thanks,
>>
>>Eric
>>
>>PS: OPS 3.0 stack traces are beautiful on screen but not easy to
>>copy/paste!
>>pi?ce jointe document plein texte (message-footer.txt)
>>--
>>You receive this message as a subscriber of the [hidden email] mailing list.
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>You receive this message as a subscriber of the [hidden email] mailing list.
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Upload an OPS 3.0

Erik Bruchez
Administrator
In reply to this post by Eric van der Vlist
Ok, this bug should now be fixed.

I also fixed a bug related to xforms:upload within xforms:repeat,
related to the character encoding used by browsers to send
multipart/form-data content. Apparently, browsers simply encode field
names in utf-8. This is a little curious, because according to RFC 2388,
"Field names originally in non-ASCII character sets may be encoded
within the value of the "name" parameter using the standard method
described in RFC 2047." This seems to mandate that the encoding be
explicitly marked with something like:

   =?utf-8?blahblah?=

Anyway, let us know if the latest code fixes the "Unsupported type"
exception.

-Erik

Eric van der Vlist wrote:

> I can't get upload working with OPS 3.0...
>
> I have tried many things, including:
>
>         <xforms:model>
>             <xforms:instance>
>                 <fusion xmlns="">
>                     <mod?le/>
>                     <donn?es filename="" mediatype="" size=""/>
>                 </fusion>
>             </xforms:instance>
>             <xforms:bind nodeset="/fusion/donn?es" type="xs:base64Binary"/>
>             <xforms:submission id="fusionne" method="post" replace="all"
>                 action="/sandbox/fusion"/>
> ...
>
> And I always get a stack trace that says:
>
>  "Unsupported type: {http://www.w3.org/2001/XMLSchema}anyURI"
>
> ...
>
> oxf:/ops/xforms/xforms-server-submit.xpl 53 43 executing processor
> (name='{http://www.orbeon.com/oxf/processors}xforms-server')
> <p:processor name="oxf:xforms-server">...</p:processor>
>
> ...
>
> org.orbeon.oxf.xforms.XFormsUtils convertUploadTypes XFormsUtils.java
> 383
>
> What do I get wrong?
>
> Thanks,
>
> Eric
>
> PS: OPS 3.0 stack traces are beautiful on screen but not easy to
> copy/paste!


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws