Hello,
I am trying to edit the ACL for the $settings stream. How do I access the stream from the UI.
Thanks in advance,
Beno M
Hello,
I am trying to edit the ACL for the $settings stream. How do I access the stream from the UI.
Thanks in advance,
Beno M
It’s just a normal stream so
http://yourip:port/streams/%24settings.
There are API functions for setting defaults in the .NET API as well
Over http you in general should access it from the “metadata” rel link on the feed. If you go to http://yourserver/streams/foo there will be the link in the feed.
Is it still true that I should be able to access http://localhost:2113/streams/%24settings ?
Not able to see it on my local using 3.0.0. It’s mentioned in http://docs.geteventstore.com/server/3.0.0/access-control-lists/, so I thought it would be there.
Here’s what I tried and got back
jgough@JGOUGH /c/Projects/github/CommitStream.Web/src/app (develop)
$ curl http://localhost:2113/streams/%24settings -u admin:changeit -v
Adding handle: conn: 0x1e33d80
Adding handle: send: 0
Adding handle: recv: 0
Curl_addHandleToPipeline: length: 1
About to connect() to localhost port 2113 (#0)
Trying ::1…
Connection refused
Trying 127.0.0.1…
Connected to localhost (127.0.0.1) port 2113 (#0)
Server auth using Basic with user ‘admin’
GET /streams/%24settings HTTP/1.1
Authorization: Basic YWRtaW46Y2hhbmdlaXQ=
User-Agent: curl/7.30.0
Host: localhost:2113
Accept: /
< 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: POST, DELETE, GET, OPTIONS
< Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER, Aut
horization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-Requir
esMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: Location, ES-Position
< Date: Mon, 26 Jan 2015 19:59:58 GMT
<
I also tried TestClient:
[45956,01,20:11:22.582]
ES VERSION: 3.0.0.0 (master/51cef1881b1c5ab5e3962fb61bffac1dc99ec506, Wed, 17 Sep 2014 16:42:34 +0100)
OS: Windows (Microsoft Windows NT 6.1.7601 Service Pack 1)
RUNTIME: .NET 4.0.30319.18444 (64-bit)
GC: 3 GENERATIONS
LOGS: C:\Program Files\eventstore\es-logs
HELP: False ()
VERSION: False ()
LOG: ()
CONFIG: ()
DEFINES: ()
WHAT IF: False ()
IP: 127.0.0.1 ()
TCP PORT: 1113 ()
HTTP PORT: 2113 ()
TIMEOUT: -1 ()
READ WINDOW: 2000 ()
WRITE WINDOW: 2000 ()
PING WINDOW: 2000 ()
FORCE: False ()
COMMAND: ()
rd $settings
Segments count: 1, buffers count: 512, should be when full: 512
[45956,09,20:11:27.335] Processing command: rd $settings.
[45956,10,20:11:27.399] [127.0.0.1:1113, L127.0.0.1:53235]: Reading…
[45956,12,20:11:27.739] Read request took: 00:00:00.0403194.
[45956,12,20:11:27.804] TcpTypedConnection: [127.0.0.1:1113, L127.0.0.1:53235] ERROR for ReadEventCompleted. Connection
will be closed.
Object reference not set to an instance of an object.
[45956,09,20:11:27.836] Error during execution of command: Connection was closed prematurely…
[45956,09,20:11:27.836] Command exited with code 1.
You have to create it first otherwise you have defaults
ok, thanks
I raised a similar question a couple of months ago.
This thread might help: https://groups.google.com/forum/#!searchin/event-store/flerin/event-store/0f9YtnhpFVI/YhLeRtYBvFEJ
Marc, excellent. That was a lot more clear than the docs. I’ll be happy to send a pull-request. I guess https://github.com/EventStore/docs.geteventstore.com/blob/gh-pages/server/3.0.1/access-control-lists.md and the like is the correct place?
Yes