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 #1

Updated by Jérémie Galarneau over 7 years ago

  • Status changed from New to Confirmed
Actions #2

Updated by Jonathan Rajotte Julien over 7 years ago

  • Status changed from Confirmed to Resolved

This was addressed by:

dd89693fcab4a97033d5451c5d9cb13aa153aa43
Author: Jonathan Rajotte <>
Date: Tue Mar 29 18:56:23 2016 -0400
Fix: xsd: urls and paths are not of type name_type but string

[v2] Update commit subject and fix spelling in of commit message.
name_type is upper bounded to 255 which make no sense for a path or url.
Reported-by: Marc-Andre Laperle &lt;&gt;
Signed-off-by: Jonathan Rajotte &lt;&gt;
Signed-off-by: Jérémie Galarneau &lt;&gt;
Actions

Also available in: Atom PDF