Open jmorrissAkamai opened 5 years ago
Additional note: the 'dir' action fails with netstorage3 (filestore), but succeeds with netstorage4 (objectstore). The API's are supposed to be identical, but perhaps ns4 is more tolerant of the errant "undefined" text which the netstorage cli appends to X-Akamai-ACS-Action.
When using 'akamai netstorage dir' on windows 64 bit, the X-Akamai-ACS-Action header is invalid due to an appended 'undefined' string, which is resulting in a 400 response.
Frame 32: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0 Ethernet II, Src: LcfcHefe_7b:b9:6b (54:e1:ad:7b:b9:6b), Dst: Cisco_9f:f1:37 (00:00:0c:9f:f1:37) Internet Protocol Version 4, Src: 172.19.17.243, Dst: 72.247.150.202 Transmission Control Protocol, Src Port: 63156, Dst Port: 80, Seq: 331, Ack: 514, Len: 0 [2 Reassembled TCP Segments (330 bytes): #27(330), #32(0)] Hypertext Transfer Protocol GET /461989 HTTP/1.1\r\n Content-Type: application/json\r\n X-Akamai-ACS-Auth-Data: 5, 0.0.0.0, 0.0.0.0, 1538671629, 7c3b43c52ba0643b06ae, jmtestapi\r\n X-Akamai-ACS-Auth-Sign: FMtujjIgCh/vupM4q4mZX4x0Bv5PjVVXMAOWWwAEAvM=\r\n X-Akamai-ACS-Action: version=1&action=dir&format=xmlundefined\r\n host: jmtest2-nsu.akamaihd.net\r\n Connection: close\r\n \r\n [Full request URI: http://jmtest2-nsu.akamaihd.net/461989] [HTTP request 2/2]