File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ std::optional<CHIP_ERROR> TryWriteViaAccessInterface(const ConcreteAttributePath
59
59
60
60
CHIP_ERROR err = aai->Write (path, decoder);
61
61
62
- // explict translate UnsupportedRead to Access denied. This is to allow callers to determine a
63
- // translation for this: usually wildcard subscriptions MAY just ignore these where as direct reads
64
- // MUST translate them to UnsupportedAccess
65
- ReturnErrorCodeIf (err == CHIP_IM_GLOBAL_STATUS (UnsupportedWrite), CHIP_ERROR_ACCESS_DENIED);
66
-
67
62
if (err != CHIP_NO_ERROR)
68
63
{
69
64
return std::make_optional (err);
@@ -74,6 +69,7 @@ std::optional<CHIP_ERROR> TryWriteViaAccessInterface(const ConcreteAttributePath
74
69
// - if no encode, say that processing must continue
75
70
return decoder.TriedDecode () ? std::make_optional (CHIP_NO_ERROR) : std::nullopt;
76
71
}
72
+
77
73
// / Metadata of what a ember/pascal short string means (prepended by a u8 length)
78
74
struct ShortPascalString
79
75
{
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class DataModel : public DataModelMetadataTree
58
58
// / TEMPORARY/TRANSITIONAL requirement for transitioning from ember-specific code
59
59
// / ReadAttribute is REQUIRED to perform:
60
60
// / - ACL validation (see notes on OperationFlags::kInternal)
61
- // / - Validation of readability/writability
61
+ // / - Validation of readability/writability (also controlled by OperationFlags::kInternal)
62
62
// / - use request.path.mExpanded to skip encoding replies for data according
63
63
// / to 8.4.3.2 of the spec:
64
64
// / > If the path indicates attribute data that is not readable, then the path SHALL
@@ -84,8 +84,10 @@ class DataModel : public DataModelMetadataTree
84
84
// / When this is invoked, caller is expected to have already done some validations:
85
85
// / - cluster `data version` has been checked for the incoming request if applicable
86
86
// /
87
- // / When `request.writeFlags.Has(WriteFlags::kForceInternal)` the request is from an internal app update
88
- // / and SHOULD bypass some internal checks (like timed enforcement, potentially read-only restrictions)
87
+ // / TEMPORARY/TRANSITIONAL requirement for transitioning from ember-specific code
88
+ // / WriteAttribute is REQUIRED to perform:
89
+ // / - ACL validation (see notes on OperationFlags::kInternal)
90
+ // / - Validation of readability/writability (also controlled by OperationFlags::kInternal)
89
91
// /
90
92
// / Return codes
91
93
// / CHIP_IM_GLOBAL_STATUS(code):
You can’t perform that action at this time.
0 commit comments