Bug #47164 "Download diagnostic report" .zip file names not unique enough
Submitted: 7 Sep 2009 9:00 Modified: 13 Oct 2009 15:22
Reporter: Roger David Nay Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Server Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Josh Sled CPU Architecture:Any

[7 Sep 2009 9:00] Roger David Nay
Description:
Having 2 separate server instances the .zip support file name "Download diagnostic report" is the same. This may be confusing, finding which is the latest file created, if it's necessary during the same day to download and provide this information to MySQL support.

How to repeat:
N/A

Suggested fix:
I would suggest ensuring that each filename is unique and also that the "server instance" is taken into account.

* add the monitor server server name (or part of) as part of the file name.
* multiple instances on a server is possible, include port # (if not 18080).
* add the date and time the file is generated instead of just the date.
[7 Sep 2009 9:11] Simon Mudd
Note: servers can be reached by hostname:port that is where tomcat binds to.

If tomcat binds to 0.0.0.0 then use the hostname. If it binds to a specific address then use that: 192_1_2_3. Include the port as more than one server may be bound to the port.

So hostname.domain.com_port_number might be a good thing to add (":"'s in a filename are not a good thing to use on unix)
[15 Sep 2009 14:03] Enterprise Tools JIRA Robot
Josh Sled writes: 
revno: 7474
revision-id: jsled@asynchronous.org-20090914183535-vmwtd2g93p3ms9uf
parent: jsled@asynchronous.org-20090914181348-zbiulsrhgibti6cv
committer: Josh Sled <jsled@asynchronous.org>
branch nick: 2.1-bugs
timestamp: Mon 2009-09-14 14:35:35 -0400
message:
  EM-3577: Add timestamp to date in diagnostic support zip filename
[1 Oct 2009 14:59] Enterprise Tools JIRA Robot
Keith Russell writes: 
Patch installed in versions => 2.1.1.1104 & versions => 2.2.0.1501.
[2 Oct 2009 21:58] Enterprise Tools JIRA Robot
Marcos Palacios writes: 
Verified fixed in service manager build 2.1.1.1104.

Docs: After documenting this fix, please set the bug back to 'QA testing' for testing in version 2.2.0.

Verified that full time stamp is added to the file name.
[13 Oct 2009 9:06] MC Brown
A note has been added to the 2.1.1 and 2.2 changelog: 

The diagnostic report file has been updated so that the filename of the report includes the timestamp when the report was generated.