Skip to content

Conversation

@dr-js
Copy link
Contributor

@dr-js dr-js commented Aug 16, 2025

currently parser error like:
https://github.com/minio/minio-js/blob/8.0.5/src/xml-parsers.js#L101 will be un-catchable from app code

to reproduce similar situation, change local code in parseListObjectsV2 in node_modules/minio/dist/main/xml-parsers.js to:

-- if (!xmlobj.ListBucketResult) {
    throw new errors.InvalidXMLError('Missing tag: "ListBucketResult"');
-- }

and try catch this error from mc.listObjectsV2()

@prakashsvmx
Copy link
Member

@dr-js , could you please re base ?

@prakashsvmx prakashsvmx merged commit 212f282 into minio:master Sep 4, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants