You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the EigenDA Proxy get, for some commitments with incorrect formats, the api still returns a status code of 200. This may mislead the users of the EigenDA Proxy.
GET
curl -v http://127.0.0.1:3100/get/0x0100001
* Trying 127.0.0.1:3100...
* Connected to 127.0.0.1 (127.0.0.1) port 3100
> GET /get/0x0100001 HTTP/1.1
> Host: 127.0.0.1:3100
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Sat, 08 Feb 2025 08:09:53 GMT
< Content-Length: 0
<
* Connection #0 to host 127.0.0.1 left intact
* Trying 127.0.0.1:3100...
* Connected to 127.0.0.1 (127.0.0.1) port 3100
> POST /put/0x00001 HTTP/1.1
> Host: 127.0.0.1:3100
> User-Agent: curl/8.4.0
> Accept: */*
> Content-Length: 16
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Date: Sat, 08 Feb 2025 09:17:30 GMT
< Content-Length: 0
<
* Connection #0 to host 127.0.0.1 left intact
Proposed Solution
Using regular expressions to validate the content of routingVarNamePayloadHex. "{"+routingVarNamePayloadHex+":(?:[0-9a-fA-F]{2})*}"
The text was updated successfully, but these errors were encountered:
adam-xu-mantle
changed the title
EigenDA Proxy /get returns HTTP status code 200 when using a malformat commitment
EigenDA Proxy returns HTTP status code 200 when using a malformat commitment
Feb 8, 2025
Problem
In the EigenDA Proxy
get
, for some commitments with incorrect formats, the api still returns a status code of 200. This may mislead the users of the EigenDA Proxy.Proposed Solution
Using regular expressions to validate the content of routingVarNamePayloadHex.
"{"+routingVarNamePayloadHex+":(?:[0-9a-fA-F]{2})*}"
The text was updated successfully, but these errors were encountered: