View Issue Details

IDProjectCategoryView StatusLast Update
0006551NodeSets, XSDs and Generated CodeApi Changepublic2021-07-06 16:53
ReporterRobin Lutter Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Summary0006551: Problem with Property RejectSHA1SignedCertificates in class SecurityConfiguration
Description

We have an instance of the class "SecurityConfiguration" that we are serializing into a database as a XML string. For some customers there we need to set the property value of "RejectSHA1SignedCertificates" to "False".
With the next program start we deserialize the XML string back to an instance of the class "SecurityConfiguration" and make some modifications on it. After this is done, we serialize it again and overwrite the existing XML string in the database.
But the DataMemberAttribute "EmitDefaultValue=false" prevents the Property "RejectSHA1SignedCertificates" from getting serialized now. So this time the property value is not part of the XML string.

With the next program start we create again a new instance of "SecurityConfiguration" and assign the values of the deserialized XML string. But now the property "RejectSHA1SignedCertificates" is "True"
because the default constructor of "SecurityConfiguration" sets this value. Now we have different property values without ever assigning a new value on purpose.

Would it be possible to set the DataMemberAttribute "EmitDefaultValue" of "RejectSHA1SignedCertificates" to "True", so its value "False" also gets serialized?

Additional Information

Assembly Opc.UA.Core, Version 1.4.365.0
Namespace Opc.Ua
Class SecurityConfiguration
Property RejectSHA1SignedCertificates

TagsConfiguration
Attached Files
.NET API .PNG (53,818 bytes)   
.NET API .PNG (53,818 bytes)   
Commit Version
Fix Due Date

Activities

Randy Armstrong

2021-07-03 09:00

administrator   ~0014626

ApplicationConfiguration.xsd needs to be updated to match the required default values:

  <xs:element name="RejectSHA1SignedCertificates" type="xs:boolean" default="true" minOccurs="0" />
  <xs:element name="RejectUnknownRevocationStatus" type="xs:boolean" default="true" minOccurs="0" />

This schema is not defined by Part 6.
Please submit issue to:
https://github.com/OPCFoundation/UA-.NETStandard

Randy Armstrong

2021-07-06 16:53

administrator   ~0014656

Reviewed in UA WG meeting.

Issue History

Date Modified Username Field Change
2021-03-08 07:51 Robin Lutter New Issue
2021-03-08 07:51 Robin Lutter Tag Attached: .NET API
2021-03-08 07:51 Robin Lutter Tag Attached: Configuration
2021-03-08 07:51 Robin Lutter File Added: .NET API .PNG
2021-03-08 10:02 Randy Armstrong Tag Detached: .NET API
2021-03-08 10:03 Randy Armstrong Project .NET API => NodeSets, XSDs and Generated Code
2021-04-13 16:46 Jim Luth Assigned To => Randy Armstrong
2021-04-13 16:46 Jim Luth Status new => assigned
2021-07-03 09:00 Randy Armstrong Status assigned => resolved
2021-07-03 09:00 Randy Armstrong Resolution open => not fixable
2021-07-03 09:00 Randy Armstrong Note Added: 0014626
2021-07-06 16:53 Randy Armstrong Status resolved => closed
2021-07-06 16:53 Randy Armstrong Note Added: 0014656