Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8884 closed bug (fixed)

jqXHR breaks names of custom header fields

Reported by: debil@… 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.

Change History (4)

comment:1 Changed 6 years ago by rwaldron

  • Component changed from unfiled to ajax
  • Owner set to sbisbee
  • Priority changed from undecided to high
  • Status changed from new to assigned

comment:2 Changed 6 years ago by jaubourg

  • Milestone changed from 1.next to 1.6
  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 6 years ago by anonymous

Thanks for that fast response. :)

comment:4 Changed 6 years ago by jaubourg

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

Changeset: 3a3842c6696f121392c89b68f2f061043405ae9f

Note: See TracTickets for help on using tickets.