cursor[bot] opened a new issue, #9285:
URL: https://github.com/apache/opendal/issues/9285
### OpenDAL version or commit
`af891104fe6fa5f66684fc2c52d02e488deee945` on main.
### Affected service or component
`opendal-core` `parse_multipart_boundary`. Callers include the GCS and Azure
Blob batch deleters.
### Describe the bug
`parse_multipart_boundary` returns everything after `boundary=`. A later
parameter stays in the token, and a quoted boundary keeps its quotes. The
parser then looks for a delimiter that is not in the body.
### Steps to Reproduce
Parse these `Content-Type` values with `parse_multipart_boundary`:
- `multipart/mixed; boundary=gc0p4Jq0M2Yt08jU534c0p; charset=utf-8`
- `multipart/mixed; boundary="gc0p4Jq0M2Yt08jU534c0p"`
### Actual Behavior
The first value returns `Some("gc0p4Jq0M2Yt08jU534c0p; charset=utf-8")`. The
quoted value returns the token with the quote characters still attached.
### Expected Behavior
Both return `Some("gc0p4Jq0M2Yt08jU534c0p")`. An unquoted GCS boundary that
contains `=` and has no later parameter, `batch_pK7JBAk73-E=_AA5eFwv4m2Q=`,
stays unchanged.
### Additional Context
`test_parse_multipart_boundary` fails on `af89110` before the parser stops
at `;` and strips one pair of quotes.
Yes, I would like to submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]