core icon indicating copy to clipboard operation
core copied to clipboard

fix(Symfony): canWrite guessing in WriteListener

Open Fabrn opened this issue 1 year ago • 2 comments

Q A
Branch? 3.3
Tickets Closes #6501

As explained in the issue, in version 3.3 : a Get operation using a Controller is always calling the WriteProcessor after the Controller is called, which causes an "Invalid identifier or value configuration" if you are using another identifier.

Example :

new Get(
    output: SomethingOutput::class,
    provider: SomethingProvider::class,
)

A simple operation like this calls the WriteProcessor.

Fabrn avatar Aug 30 '24 20:08 Fabrn

Let's start again @Fabrn I'd like to get this fixed, what should we do? Adding uriVariables fixed your issue?

soyuka avatar Oct 17 '24 06:10 soyuka

Hello 🙂

For the moment, we chose to keep the 3.2 version so our previous code would still work as intended, for time saving reasons. Sadly, I cannot confirm if this problem would have been solved for now.

However, even if I would resolve it using uriVariables, the thing is that a behavior has been broken on 3.3 and that's why I think it should be resolved. If we tell me that this is intended, well I guess we're fine and there's nothing to be fixed 😄

Fabrn avatar Oct 19 '24 17:10 Fabrn