[RTFACT-8106] Add Support Zone under Admin >> Advance category [Server Side Support] Created: 03/Sep/15  Updated: 22/Nov/15  Resolved: 17/Nov/15

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.0

Type: New Feature Priority: Normal
Reporter: Roy Zanbel (Inactive) Assignee: Michael Pasternak (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relationship
Trigger

 Comments   
Comment by Michael Pasternak (Inactive) [ 08/Nov/15 ]

Feature was implemented in both UI and API, in api use one of two:

curl -v -X POST http:host:8080/artifactory/api/support/generateBundle -d '{
"systemLogsConfiguration" :

{ "enabled" : true, "startDate" : 1446286166815, "endDate" : 1446545366816 }

,
"systemInfoConfiguration" :

{ "enabled" : true }

,
"securityInfoConfiguration" :

{ "enabled" : true, "hideUserDetails" : true }

,
"configDescriptorConfiguration" :

{ "enabled" : true, "hideUserDetails" : true }

,
"configFilesConfiguration" :

{ "enabled" : true }

,
"storageSummaryConfiguration" :

{ "enabled" : true }

,
"threadDumpConfiguration" :

{ "enabled" : true }

}' -H "Content-Type: application/json" -u...

curl -v -X POST http://host:8080/artifactory/api/support/generateBundle -d '{
"systemLogsConfiguration" :

{ "enabled" : true, "daysCount" : 3 }

,
"systemInfoConfiguration" :

{ "enabled" : true }

,
"securityInfoConfiguration" :

{ "enabled" : true, "hideUserDetails" : true }

,
"configDescriptorConfiguration" :

{ "enabled" : true, "hideUserDetails" : true }

,
"configFilesConfiguration" :

{ "enabled" : true }

,
"storageSummaryConfiguration" :

{ "enabled" : true }

,
"threadDumpConfiguration" :

{ "enabled" : true }

}' -H "Content-Type: application/json" -u...

in response you'll get a list of bundles to download, in form of:

"bundles" : [ "/artifactory/api/support/downloadBundle/support-bundle-20151108-1338238-1446982703891.zip" ]

Comment by Michael Pasternak (Inactive) [ 09/Nov/15 ]

final api:

create
=====

POST http://host/artifactory/api/support/bundles -d {}

download:
========

GET http://host/artifactory/api/support/bundles/support-bundle-20151109-1330592-1447068659291.zip

list:
===

GET http://host/artifactory/api/support/bundles

delete
=====

DELETE http://host/artifactory/api/support/bundles/support-bundle-20151109-1330592-1447068659291.zip

Comment by Daniel Keler [ 15/Nov/15 ]

Empty array gives an empty zip file (false by default for ALL properties)
Should give at least "artifactory.log" if nothing is chosen.

Comment by Daniel Keler [ 15/Nov/15 ]

No validation for negative numbers in "daysCount" property.

"daysCount": -1

Comment by Daniel Keler [ 15/Nov/15 ]

Start date after end date without validation:

systemLogsConfiguration:
"enabled": true,
"startDate" : 1447604663000,
"endDate" : 1444926263000

Comment by Daniel Keler [ 15/Nov/15 ]

DELETE method returns "true" when bundle is deleted.
User should see success message.

Comment by Daniel Keler [ 15/Nov/15 ]

Please review the comments.

Comment by Daniel Keler [ 16/Nov/15 ]

Add DELETE action in Artifactory logs.

Generated at Wed Aug 12 01:38:41 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.