roxy icon indicating copy to clipboard operation
roxy copied to clipboard

Cannot upload .rdf file in Safari

Open zavada opened this issue 11 years ago • 2 comments

When I upload .rdf file I get the content by

let $file := req:required("file_taxonomy_upload", "type=xml")

and get next error

fn:error(xs:QName("INVALID-REQUEST-PARAMETER"), fn:concat($name, "=", $value), "response-code=400")

in the request.xqy on line 151. If I rename file from .rdf to .xml everything works well.

I found one interesting behavior. If I add after line 139

    let $_ := xdmp:log($value)
    let $_ := xdmp:log(fn:concat("test-",$value))

first case will returns xml but second something like this

test-3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D38223F3E0A3C7264663A52444620786D6C6E733A7264663D22687474703A2F2F7777772E77332E6F72672F313939392F30322F32322D7264662D73796E7461782D6E7323220A786D6C6E733A726466733D22687474703A2F2F7777772E77

When I upload .rdf in Chrome I have the same xml in both xdmp:log().

I tested in Safari Version 7.1 (9537.85.10.17.1) on Mac OS 10.9.5.

zavada avatar Sep 28 '14 20:09 zavada

Are you able to provide the request headers that Safari sends with this?

dmcassel avatar Sep 29 '14 15:09 dmcassel

Nik,

Did you get this figured out? Is it still an issue?

paxtonhare avatar Oct 29 '14 13:10 paxtonhare