create stream through UI in new auth model is not working
Description
Now in the new auth model, user need ADMIN privilege to create the stream and WRITE privilege to send event to the stream. If someone with only ADMIN privilege tries to create the stream through UI(without uploading any data), UI seems to make a creation call and a send event call to the backend. We will have this message showed: "Principal 'Principal{name='alice', type=USER, kerberosPrincipal=null}' is not authorized to perform action 'WRITE' on entity 'stream:test.testStream'". But if you refresh the page, the stream is created. If you do the creation through cli, we will see "Successfully created stream with ID 'testStream'".
Now in the new auth model, user need ADMIN privilege to create the stream and WRITE privilege to send event to the stream. If someone with only ADMIN privilege tries to create the stream through UI(without uploading any data), UI seems to make a creation call and a send event call to the backend. We will have this message showed: "Principal 'Principal{name='alice', type=USER, kerberosPrincipal=null}' is not authorized to perform action 'WRITE' on entity 'stream:test.testStream'". But if you refresh the page, the stream is created. If you do the creation through cli, we will see "Successfully created stream with ID 'testStream'".