Autodesk / Autodesk/AutodeskMachineControlFramework
XML Handler
- Linguagem predominante
- C++
- Estrelas
- 46
- Forks
- 32
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
A number of issues with the XML functions in the state environment.
- Successive "RemoveAttribute" calls result in:
"
Exception thrown: read access violation.
**this** was 0x68.
"
- SaveToString calls once an attribute has been removed and then added throws the same error
- SaveToString calls can duplicate "xmlns=..."
This error can be repeated by including an XML file in the resource folder and using this code:
auto xml_string = pStateEnvironment->LoadResourceString("test");
auto xml_object = pStateEnvironment->ParseXMLString(xml_string);
auto xml_string_back = xml_object->SaveToString(false);
Guia de contribuição
Direção de pesquisa
Comece reproduzindo o relatório com um recurso XML e as chamadas a LoadResourceString, ParseXMLString, RemoveAttribute e SaveToString mostradas na issue. Rastreie a remoção sucessiva de atributos e a serialização após remover e adicionar novamente, depois verifique se SaveToString não falha mais e não duplica as entradas xmlns.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- cpp, xml
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100