-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
configurationExport / configurationDirectivesList / Zend Global Directives #50
Comments
Hello ze42, Output FormatThe output format is driven in this case not by the ZendServerSDK tool, but by the configurationExport WebAPI function being invoked See the following note on that documentation page:
Zip ArchiveThis is why the response body is a zip file; that is what the configurationExport API call does (this is the API function behind the GUI action Administration | Import/Export. See the Exporting Configurations section on the documentation Backing Up and Restoring Settings page. So, at least at the current time, the output formats xml and json will have no effect on the response body. The kv output format, should, in fact (at least at the current time), yield the same results as xml and json formats (i.e., a zip archive). This may be annoying to you, but the behavior would at least be consistent. So we do have a bug there on kv. Since the backend produces only zip archives, changing to producing non-zip configuration snapshots is technically an "enhancement issue", not a "bug issue", but now we know that. Zend Username / Serial NumberI found neither One of the parameters to configurationExport is
Below is the relevant section from that global.config.php file:
This means the you should by default see neither of the them exported. You could temporarily override these defaults with an edit to global.config.php file (or adding a local.config.php? I will have to test to see if the merged config arrays would remove the serial number and username from the blacklist.) This explains why other zend directives are not exported. I'll check for other directives not blacklisted in this config file, and will look at configurationDirectivesList next. |
Ok, I confirm that editing directly
On the documentation you pasted:
I would expect to be able to pass and use that directive.
Note: testing on |
Hello ze42, I confirmed that, for example, Neither does In both cases, most of the default blacklisted directives do not appear in the export, but these do appear: It seems that directives listed in The problem could be in one of three places: zs-client, the WebAPI module it uses, or in the web service itself. We'll get started looking into it. I'm testing with ZendServer 8.0.1. Will have to look at 7.0, etc. also. |
configurationExport
configurationDirectivesList
The text was updated successfully, but these errors were encountered: