Files
kobergjandClaude Opus 4.8 c14cf38cc9 feat(ocis): [OCISDEV-877] add clean-corrupt-public-shares command (#12494)
Add an "ocis shares clean-corrupt-public-shares" maintenance command that
removes public-share entries with a nil/empty resource_id. Such an entry makes
the json public-share manager's ListPublicShares panic with a nil-pointer
dereference; since the manager reads all entries and filters in memory, one bad
row poisons the endpoint for the whole tenant.

The command reads the raw persistence (so it never triggers the panic itself)
and writes back through the same metadata storage path the manager uses, so
blob size, mtime and etag are recomputed automatically. Defaults to --dry-run
and supports the jsoncs3 and json public-share drivers.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 16:30:38 +02:00
..
2023-08-08 11:55:19 +02:00
2024-10-17 14:05:27 +02:00

ocis

The ocis package includes the Infinite Scale runtime and commands for the Infinite Scale command-line interface (CLI), which are not bound to a service.

Table of Contents

Service Registry

This package also configures the service registry which will be used to look up the service addresses.

Available registries are:

  • nats-js-kv (default)
  • memory

To configure which registry to use, you have to set the environment variable MICRO_REGISTRY, and for all except memory you also have to set the registry address via MICRO_REGISTRY_ADDRESS.

Memory limits

oCIS will automatically set the go native GOMEMLIMIT to 0.9. To disable the limit set AUTOMEMEMLIMIT=off. For more information take a look at the official Guide to the Go Garbage Collector.

CLI Commands

See the dev docs, Service Independent CLI for more details.