[ 
https://issues.apache.org/jira/browse/BEAM-13177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aydar Zaynutdinov updated BEAM-13177:
-------------------------------------
    Description: 
Now API methods use uuid.MustParse() to get uuid from request parameters. If 
parameters don't match the correct uuid this method will throw panic.

Need to use uuid.Parse() instead of uuid.MustParse() to prevent this case. In 
case uuid.Parse() returns error return errors.InvalidArgumentError.

  was:Now API methods use uuid.MustParse() to get uuid from request parameters. 
If parameters don't match the correct uuid this method will throw panic. Need 
to use uuid.Parse() instead of uuid.MustParse() to prevent this case. In case 
uuid.Parse() returns error return errors.InvalidArgumentError.


> [Playground] Change using of MustParse with Parse for all API methods
> ---------------------------------------------------------------------
>
>                 Key: BEAM-13177
>                 URL: https://issues.apache.org/jira/browse/BEAM-13177
>             Project: Beam
>          Issue Type: Bug
>          Components: beam-playground
>            Reporter: Aydar Zaynutdinov
>            Priority: P3
>              Labels: beam-playground-backend, beam-playground-sprint-3
>
> Now API methods use uuid.MustParse() to get uuid from request parameters. If 
> parameters don't match the correct uuid this method will throw panic.
> Need to use uuid.Parse() instead of uuid.MustParse() to prevent this case. In 
> case uuid.Parse() returns error return errors.InvalidArgumentError.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to