Loading ccsrc/Protocols/Xml/xml_codec.cc +3 −3 Original line number Diff line number Diff line Loading @@ -57,13 +57,13 @@ int xml_codec::encode(const LibHttp__XmlMessageBodyTypes::XmlBody& body, OCTETST data = OCTETSTRING(canonicalized.length(), (const unsigned char*)canonicalized.c_str()); } /*{ // TITAN issue: variant "namespace for 'agent/organization' seems buggy: <Agent xsi:type="agent:Organization"> { // TITAN issue: variant "namespace for 'agent/organization' seems buggy: <Agent xsi:type="agent:Organization"> // ==> xmlns:xsi=http://www.cise.eu/datamodel/v1/entity/organization/ xsi:type="ns4:Organization" loggers::get_instance().log("xml_codec::encode: Apply TITAN workaround"); std::string s(static_cast<const unsigned char*>(data), data.lengthof() + static_cast<const unsigned char*>(data)); size_t idx = 0; std::string f(" xsi:type=\"agent:Organization\""); std::string t(""); std::string t(" xsi:type=\"ns6:Organization\" xmlns:ns6=\"http://www.cise.eu/datamodel/v1/entity/organization/\""); // std::string f("\"agent:Organization\""); // std::string t("\"xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ns4:Organization\""); loggers::get_instance().log("xml_codec::encode: Apply TITAN workaround: %s --> %s", f.c_str(), t.c_str()); Loading @@ -73,7 +73,7 @@ int xml_codec::encode(const LibHttp__XmlMessageBodyTypes::XmlBody& body, OCTETST } // End of 'while' statement data = OCTETSTRING(s.length(), (const unsigned char*)s.c_str()); }*/ } // Add header CHARSTRING h("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n"); Loading titan-test-system-framework @ c38a2f26 Original line number Diff line number Diff line Subproject commit c7b208ea9b477564472cf523f6000ed1e43000cf Subproject commit c38a2f267cb659c8180548bc82721d34dc71ef85 ttcn/AtsCise/AtsCise_TestCases.ttcn +4 −4 Original line number Diff line number Diff line Loading @@ -1202,16 +1202,16 @@ module AtsCise_TestCases { -, -, { m_involved_agent_rel( m_agent_derivations_agent( /*m_agent_derivations_agent( m_agent( PX_AGENT_CONTACT, m_unique_identifier( -, -, -, PX_AGENT_UUID ))), /*m_agent_derivations_organization( ))),*/ m_agent_derivations_organization( m_organization() ),*/ ), nonSpecified ) }, Loading ttcn/LibCise/ttcn/LibCise_Templates.ttcn +767 −30 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
ccsrc/Protocols/Xml/xml_codec.cc +3 −3 Original line number Diff line number Diff line Loading @@ -57,13 +57,13 @@ int xml_codec::encode(const LibHttp__XmlMessageBodyTypes::XmlBody& body, OCTETST data = OCTETSTRING(canonicalized.length(), (const unsigned char*)canonicalized.c_str()); } /*{ // TITAN issue: variant "namespace for 'agent/organization' seems buggy: <Agent xsi:type="agent:Organization"> { // TITAN issue: variant "namespace for 'agent/organization' seems buggy: <Agent xsi:type="agent:Organization"> // ==> xmlns:xsi=http://www.cise.eu/datamodel/v1/entity/organization/ xsi:type="ns4:Organization" loggers::get_instance().log("xml_codec::encode: Apply TITAN workaround"); std::string s(static_cast<const unsigned char*>(data), data.lengthof() + static_cast<const unsigned char*>(data)); size_t idx = 0; std::string f(" xsi:type=\"agent:Organization\""); std::string t(""); std::string t(" xsi:type=\"ns6:Organization\" xmlns:ns6=\"http://www.cise.eu/datamodel/v1/entity/organization/\""); // std::string f("\"agent:Organization\""); // std::string t("\"xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ns4:Organization\""); loggers::get_instance().log("xml_codec::encode: Apply TITAN workaround: %s --> %s", f.c_str(), t.c_str()); Loading @@ -73,7 +73,7 @@ int xml_codec::encode(const LibHttp__XmlMessageBodyTypes::XmlBody& body, OCTETST } // End of 'while' statement data = OCTETSTRING(s.length(), (const unsigned char*)s.c_str()); }*/ } // Add header CHARSTRING h("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n"); Loading
titan-test-system-framework @ c38a2f26 Original line number Diff line number Diff line Subproject commit c7b208ea9b477564472cf523f6000ed1e43000cf Subproject commit c38a2f267cb659c8180548bc82721d34dc71ef85
ttcn/AtsCise/AtsCise_TestCases.ttcn +4 −4 Original line number Diff line number Diff line Loading @@ -1202,16 +1202,16 @@ module AtsCise_TestCases { -, -, { m_involved_agent_rel( m_agent_derivations_agent( /*m_agent_derivations_agent( m_agent( PX_AGENT_CONTACT, m_unique_identifier( -, -, -, PX_AGENT_UUID ))), /*m_agent_derivations_organization( ))),*/ m_agent_derivations_organization( m_organization() ),*/ ), nonSpecified ) }, Loading
ttcn/LibCise/ttcn/LibCise_Templates.ttcn +767 −30 File changed.Preview size limit exceeded, changes collapsed. Show changes