Content
View differences
Updated by Niels Lindenthal about 12 years ago
**PR**: [\#736](https://github.com/opf/openproject/pull/736)
When showing a project or work package the XML response looks like this:
<project>
<project>
<!-- ... -->
</project>
</project>
when it should look just like this:
<project>
<!-- ... -->
</project>
This only happens for the [XML format](https://preview.openproject.org/api/v2/projects/plugin-reportingengine.xml?key=9a778f05c4079428f005abe7a76c56bdbecf7785). [JSON](https://preview.openproject.org/api/v2/projects/plugin-reportingengine.json?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is rendered correctly as:
{
"project": {
/* ... */
}
}
The [behaviour for work packages](https://preview.openproject.org/api/v2/projects/plugin-reportingengine/planning_elements/1073.xml?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is similar, although with a slight variation:
<work_package>
<planning_element>
<!-- ... -->
</planning_element>
</work_package>
when it should be:
<planning_element>
<!-- ... -->
</planning_element>
Again, the [JSON response](https://preview.openproject.org/api/v2/projects/plugin-reportingengine/planning_elements/1073.json?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is correct.
When showing a project or work package the XML response looks like this:
<project>
<project>
<!-- ... -->
</project>
</project>
when it should look just like this:
<project>
<!-- ... -->
</project>
This only happens for the [XML format](https://preview.openproject.org/api/v2/projects/plugin-reportingengine.xml?key=9a778f05c4079428f005abe7a76c56bdbecf7785). [JSON](https://preview.openproject.org/api/v2/projects/plugin-reportingengine.json?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is rendered correctly as:
{
"project": {
/* ... */
}
}
The [behaviour for work packages](https://preview.openproject.org/api/v2/projects/plugin-reportingengine/planning_elements/1073.xml?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is similar, although with a slight variation:
<work_package>
<planning_element>
<!-- ... -->
</planning_element>
</work_package>
when it should be:
<planning_element>
<!-- ... -->
</planning_element>
Again, the [JSON response](https://preview.openproject.org/api/v2/projects/plugin-reportingengine/planning_elements/1073.json?key=9a778f05c4079428f005abe7a76c56bdbecf7785) is correct.