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
mc rm --version-id v2 --dry-run os2/downloads/TheRegister.pdf
If the version-id is valid (exists), then no nil pointer deref error is thrown, with or without --dry-run.
If the version-id looks valid (e.g. take any version-id and modify a digit), then no nil pointer deref error either.
If the version-id is totally wrong (e.g. "v2") or missing the last section (e.g. missing the "-e77fd4616826" in "2890fbb8-c435-4336-bcef-e77fd4616826"), then an error is thrown when the --dry-run option is used. Without "--dry-run" it simply outputs nothing (but it also does nothing since the version-id does not exist). No nil pointer deref error.
mc --version
mc version RELEASE.2023-04-06T16-51-10Z (commit-id=1c6f4f48aba72b4c9770d911e95225f9de6e9488)
Runtime: go1.20.3 linux/amd64
Copyright (c) 2015-2023 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
System information
Linux m75q 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
Expected behavior
Not throwing a nil pointer dereference error
Actual behavior
Throwing a nil pointer dereference error:
Steps to reproduce the behavior
mc rm --version-id v2 --dry-run os2/downloads/TheRegister.pdf
If the version-id is valid (exists), then no nil pointer deref error is thrown, with or without --dry-run.
If the version-id looks valid (e.g. take any version-id and modify a digit), then no nil pointer deref error either.
If the version-id is totally wrong (e.g. "v2") or missing the last section (e.g. missing the "-e77fd4616826" in "2890fbb8-c435-4336-bcef-e77fd4616826"), then an error is thrown when the --dry-run option is used. Without "--dry-run" it simply outputs nothing (but it also does nothing since the version-id does not exist). No nil pointer deref error.
mc --version
System information
Linux m75q 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: