Merge #956/#957: unknown value-kind decodes to a skip marker (version skew); /raw refuses newly-alarming an export root; data-connection saves validate only introduced errors; ACL-hidden nodes inside a grant answer NotFound
This commit is contained in:
+27
-1
@@ -247,13 +247,30 @@ Neither change alters the wire shape: one drops an optional field, the other dro
|
||||
consumer (`Guid`, `Bytes`), instead of failing the page. The item never reaches the projection cache or the address
|
||||
space. A malformed item of a supported kind (rank, dimensions and element kind disagree) still fails the page closed.
|
||||
An empty `Complete = false` page, which the origin's name filter can produce, is paged through by SDK `BrowseNext`.
|
||||
- **Version skew: an unknown enum number fails one item, not the response (#956).** A value-kind or array-element-kind
|
||||
number this build does not define (a data type a newer origin added) decodes to an *unknown-kind marker*
|
||||
(`DataMetadata.HasUnknownKind`) instead of throwing in `DataProtoMapper.DecodeMetadata`, which used to fail the whole
|
||||
browse page or metadata batch before the resolver could skip anything. The resolver skips the marker whatever its node
|
||||
kind (a `Folder` included), a remote root carrying it is refused, and it can never be validated, re-encoded or granted.
|
||||
A per-item metadata **status** this build does not define reads as that item's `Unavailable` (no value, no lease); the
|
||||
rest of the batch is unaffected. Still malformed and still failing the response: `Unspecified` (0) for any of these, an
|
||||
array whose rank and dimensions disagree, an element kind on a known scalar, an unknown **realm** (an item's realm must
|
||||
equal the requested parent's), and an unknown browse-**branch** status (the page fails `Unavailable` either way). Node
|
||||
kinds are strings and operation bits are masked to the understood set, so neither needed a change.
|
||||
- The node stays in the catalog, so a deployed export rooted at it still compiles, but it grants nothing: the values are
|
||||
unsupported, and the condition sits under the tag's folder, not under the tag. **Authoring and the deploy gate refuse
|
||||
such an export (#942, `DataExportRootAlarmBearing`)**, and likewise one rooted at a `UnsTagReference` to an
|
||||
alarm-bearing tag: that reference has no UNS node (#896), and a deployed export rooted at it would make the node's
|
||||
catalog compile refuse the whole export set. Root the export at the tag's folder, device or tag group (Raw) or at the
|
||||
referencing equipment (UNS) instead; the condition is listed there. A node re-validating an already-deployed artifact
|
||||
does not apply this rule.
|
||||
does not apply this rule. **/raw refuses the reverse edit too (#957):** saving a tag with a new alarm config when the tag
|
||||
already roots an enabled export (directly, or through a `UnsTagReference` to it) is refused with the same text. A tag
|
||||
that was already alarm-bearing can still be edited; the deploy gate reports the export.
|
||||
- **A pre-existing invalid row does not block unrelated data-connection edits (#957).** Saving or deleting a
|
||||
connection, export or mapping is refused only for an error the change *introduces*, or one still attached to the row
|
||||
being saved. An error some other row already had does not refuse it. Before, the whole draft had to be valid: one
|
||||
stale invalid export blocked every unrelated save, and with two invalid rows neither could be fixed or deleted first.
|
||||
The deploy gate (`DraftValidator`) still validates the whole draft, so nothing invalid deploys.
|
||||
- The alarm itself is forwarded as a **condition** (A1–A4, see "Condition forwarding end to end"). Condition placements
|
||||
do not depend on the value node.
|
||||
|
||||
@@ -264,6 +281,15 @@ Neither change alters the wire shape: one drops an optional field, the other dro
|
||||
browsable ancestor of the root) that the export's operations, the node's operations or the origin ACL refuse. Browse
|
||||
(`Denied` for an unknown or ungranted parent), Write (one rejection), HistoryRead (one `Refused` status) and condition
|
||||
methods (`BadNodeIdUnknown` for an unknown or ungranted placement) already answered both cases alike.
|
||||
- **Inside the grant, an ACL-hidden node is NotFound too (#957).** A node inside one of the principal's exports that
|
||||
the origin ACL hides from the peer is answered `NotFound` by GetMetadata, Read, Subscribe and condition-item
|
||||
admission, including through a mismatched view of it. Hidden means the ACL grants the peer neither Browse nor Read on
|
||||
the node, which is the rule that admits GetMetadata. Browse never lists such a node, and HistoryRead and Write already
|
||||
answer it like a missing one. `Denied` remains only for a node the peer may see but whose operation is refused by the
|
||||
export, the node or the ACL. On the consumer, an on-demand renewal answered `NotFound` is the same definitive refusal
|
||||
as `Denied` (#939, `BadUserAccessDenied`, held), so tightening the origin ACL on an already-projected node still reads as
|
||||
an access denial, not a lapse. The diagnostic consequence: an origin answering `NotFound` for a node that exists may be
|
||||
its ACL, so check the ACL for the service principal too.
|
||||
|
||||
G0, the v1 deploy and soak (#915), is still open; see the plan's §1.1.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user