You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise handler responses with custom response code e.g. 400 are returned with 500 (http.StatusInternalServerError) response code due to used logic. Error type in this handler's switch is actually *v7/apiresponses.FailureResponse, so it is not matching right branch and default branch is used instead:
Users with correct usage of versioning/Go modules won't notice this issue. Generally, codes from v7 folder should be used only in v7 folder codes. Similar problems can be also with utils/middlewares.
The text was updated successfully, but these errors were encountered:
Since this is a go module with a major version higher than 1, the version needs to be in the import statement.
As of the next v8 release, we have removed the versioned folder and there is only one folder in the module so there should be straightforward to match to the right imported package.
Unversioned handlers e.g.:
brokerapi/handlers/deprovision.go
Line 9 in 4355274
shouldn't not import versioned apiresponses:
but only unversioned apiresponses:
Otherwise handler responses with custom response code e.g.
400
are returned with500
(http.StatusInternalServerError
) response code due to used logic. Error type in this handler's switch is actually*v7/apiresponses.FailureResponse
, so it is not matching right branch and default branch is used instead:brokerapi/handlers/deprovision.go
Lines 49 to 61 in 4355274
Users with correct usage of versioning/Go modules won't notice this issue. Generally, codes from
v7
folder should be used only inv7
folder codes. Similar problems can be also with utils/middlewares.The text was updated successfully, but these errors were encountered: