Bug #57976 Advisor export does not handle names with / in them properly
Submitted: 4 Nov 2010 12:14 Modified: 4 Nov 2010 12:16
Reporter: Mark Leith Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Server Severity:S3 (Non-critical)
Version:2.3.0 OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: windmill

[4 Nov 2010 12:14] Mark Leith
Description:
If you have a graph with a / in the name, and export it to a unix like system, inflating the jar results in an incorrect directory tree, such as:

Cerberus:custom mark$ jar -xvf custom-export-20101104-1252.jar 
 inflated: custom-export.properties
 inflated: version.props
 inflated: graphs/InnoDB_I/O_Activity.xml
Cerberus:custom mark$ ll
total 24
-rw-r--r--@ 1 mark  staff  1044  4 Nov 11:53 custom-export-20101104-1252.jar
-rw-r--r--  1 mark  staff    79  4 Nov 11:57 custom-export.properties
drwxr-xr-x  3 mark  staff   102  4 Nov 11:57 graphs
-rw-r--r--  1 mark  staff    20  4 Nov 11:57 version.props
Cerberus:custom mark$ cd graphs/
Cerberus:graphs mark$ ll
total 0
drwxr-xr-x  3 mark  staff  102  4 Nov 11:57 InnoDB_I
Cerberus:graphs mark$ cd InnoDB_I/
Cerberus:InnoDB_I mark$ ll
total 8
-rw-r--r--  1 mark  staff  2912  4 Nov 11:57 O_Activity.xml

How to repeat:
Create a custom graph with a / in the graph name, such as:

http://merlin.pastebin.com/gYAibPmL

Export your custom bundle. 

Inflate as above.
[4 Nov 2010 12:28] Mark Leith
Corrected example graph: http://merlin.pastebin.com/p5rFT29V