mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-25 05:58:45 +00:00
fix(action): execute without features set (#11271)
# Which Problems Are Solved A customer noted that one some of their environments actions were never executed at all. During the investigation it was discovered, that these systems did not have any features set. # How the Problems Are Solved Fix the `scanAuthzInstance` function to handle queries without features returned correctly. # Additional Changes None # Additional Context - reported through support - requires backport to v4.x and v3.x
This commit is contained in:
@@ -599,11 +599,10 @@ func scanAuthzInstance() (*authzInstance, func(row *sql.Row) error) {
|
|||||||
}
|
}
|
||||||
instance.CSP.EnableIframeEmbedding = enableIframeEmbedding.Bool
|
instance.CSP.EnableIframeEmbedding = enableIframeEmbedding.Bool
|
||||||
instance.Impersonation = enableImpersonation.Bool
|
instance.Impersonation = enableImpersonation.Bool
|
||||||
if len(features) == 0 {
|
if len(features) > 0 {
|
||||||
return nil
|
if err = json.Unmarshal(features, &instance.Feature); err != nil {
|
||||||
}
|
return zerrors.ThrowInternal(err, "QUERY-Po8ki", "Errors.Internal")
|
||||||
if err = json.Unmarshal(features, &instance.Feature); err != nil {
|
}
|
||||||
return zerrors.ThrowInternal(err, "QUERY-Po8ki", "Errors.Internal")
|
|
||||||
}
|
}
|
||||||
if len(executionTargetsBytes) > 0 {
|
if len(executionTargetsBytes) > 0 {
|
||||||
var targets []target_domain.Target
|
var targets []target_domain.Target
|
||||||
|
|||||||
Reference in New Issue
Block a user