Project

General

Profile

Actions

Bug #1070

closed

MI's XSD limits trace path to 255 characters

Added by Anonymous over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/24/2016
Due date:
% Done:

0%

Estimated time:

Description

The trace path uses a "name_type" type, which is limited to 255 characters:

(from mi-lttng-3.0.xsd)

<!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
<xs:simpleType name="name_type">
    <xs:restriction base="xs:string">
        <xs:maxLength value="255" />
    </xs:restriction>
</xs:simpleType>

This causes errors when trying to use the MI interface on a trace in a very long path. For example, some Trace Compass jobs on Jenkins now fail with:

org.eclipse.core.commands.ExecutionException: Unable to parse the xml document:org.xml.sax.SAXException: Could not validate the xml response
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 419; cvc-maxLength-valid: Value '/home/jenkins/workspace/tracecompass-master-linux/JAVA_TO_USE/OpenJDK-8/SWTBOT/false/SWT_GTK3/0/WM/unity/label/x86-64/target-platform/tracecompass-e4.5/lttng/org.eclipse.tracecompass.lttng2.control.ui.tests/target/work/data/lttng-traces/mysession-20160801-150625' with length = '262' is not facet-valid with respect to maxLength '255' for type 'name_type'.

The trace path should probably not use the "name_type" type.

Actions

Also available in: Atom PDF