Skip to main content

Bug Tracker

Side navigation

#8884 closed bug (fixed)

Opened April 15, 2011 07:16PM UTC

Closed April 15, 2011 09:21PM UTC

Last modified April 19, 2011 07:30AM UTC

jqXHR breaks names of custom header fields

Reported by: debil@wieseln.de Owned by: sbisbee
Priority: high Milestone: 1.6
Component: ajax Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

I want to send an OCCI header via a jQuery.ajax() request.

The header is

X-OCCI-Attribute: occi.compute.Category=compute occi.compute.architecture=x86 occi.compute.cores=2 occi.compute.hostname=test occi.compute.memory=2.0 occi.compute.speed=2.4

What jQuery sends to the server is

X-Occi-Attribute: occi.compute.Category=compute occi.compute.architecture=x86 occi.compute.cores=2 occi.compute.hostname=test occi.compute.memory=2.0 occi.compute.speed=2.4

As you can see the name for the header value is changed from ''X-OCCI-Attribute'' to ''X-Occi-Attribute''. Since the header value's name is case sensitive for OCCI, this breaks communication with the API.

Please do not change the case of header field names.

Attachments (0)
Change History (4)

Changed April 15, 2011 08:21PM UTC by rwaldron comment:1

component: unfiledajax
owner: → sbisbee
priority: undecidedhigh
status: newassigned

Changed April 15, 2011 09:21PM UTC by jaubourg comment:2

milestone: 1.next1.6
resolution: → fixed
status: assignedclosed

Changed April 15, 2011 09:30PM UTC by anonymous comment:3

Thanks for that fast response. :)

Changed April 19, 2011 07:30AM UTC by jaubourg comment:4

(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.

Changeset: 3a3842c6696f121392c89b68f2f061043405ae9f