Getting 404 on metadata

Hello,

I am trying out Event Store, but experiencing some basic difficulties.

I am trying to read/modify metadata (ACL), since I want to use catchup subscription for all events, I need to add a user to ACL for $all.

I can go to the webinterface: http://localhost:2113/streams/%24all without any problems, but when I click the metadata link (http://localhost:2113/streams/%24all/metadata) I get a http 404.

The same is experienced using the http api (via curl). A custom created stream can easily be accessed: curl -i "http://127.0.0.1:2113/streams/user-f0988689e6d449cb8eebee362e300cac"

The output states the URL for metadata:

{

“uri”: “http://127.0.0.1:2113/streams/user-f0988689e6d449cb8eebee362e300cac/metadata”,

“relation”: “metadata”

}

But 404 Not Found when querying the address:

$ curl -i http://127.0.0.1:2113/streams/user-f0988689e6d449cb8eebee362e300cac/metadata --user admin:changeit

HTTP/1.1 404 Not Found

Content-Length: 0

Content-Type: text/plain; charset: utf-8

Server: Microsoft-HTTPAPI/2.0

Access-Control-Allow-Methods: GET, POST, GET, OPTIONS

Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER

Access-Control-Allow-Origin: *

  • Morten.

That is because no metadata has yet been set for the stream (its running on defaults).

If you navigate to http://127.0.0.1:2113/streams/$all in your browser there is a button there “Edit ACL” if you go here and enter $admins in all fields and save it will be the equivalent of the default and you will be able to get it from metadata uri after. You can also enter individual users or other groups eg: $all or greg in these.

Cheers,

Greg