From 3363a5ae4364e64f343dec4202cbe29bec8d9b6d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 11 Mar 2022 16:08:00 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/ops-config-data-path.md | 6 +++--- docs/8.0/ayanova/docs/ops-restore.md | 12 ++++++++++-- docs/8.0/ayanova/docs/ops-server-information.md | 17 ++++++++++++++++- .../AyaNova/Controllers/AttachmentController.cs | 12 +----------- 4 files changed, 30 insertions(+), 17 deletions(-) diff --git a/docs/8.0/ayanova/docs/ops-config-data-path.md b/docs/8.0/ayanova/docs/ops-config-data-path.md index 71d72766..10e13060 100644 --- a/docs/8.0/ayanova/docs/ops-config-data-path.md +++ b/docs/8.0/ayanova/docs/ops-config-data-path.md @@ -4,9 +4,9 @@ This setting controls where AyaNova stores it's data by default and is required All data path configurations default to a location under the location specified by AYANOVA_DATA_PATH as follows: -- AYANOVA_BACKUP_FILES_PATH defaults to 'backup' folder inside AYANOVA_DATA_PATH -- AYANOVA_ATTACHMENT_FILES_PATH defaults to 'attachments' folder inside AYANOVA_DATA_PATH -- AYANOVA_TEMP_FILES_PATH defaults to 'temp' folder inside AYANOVA_DATA_PATH +- [AYANOVA_BACKUP_FILES_PATH](ops-config-folder-backup-files.md) defaults to 'backup' folder inside AYANOVA_DATA_PATH +- [AYANOVA_ATTACHMENT_FILES_PATH](ops-config-folder-user-files.md) defaults to 'attachments' folder inside AYANOVA_DATA_PATH +- [AYANOVA_TEMP_FILES_PATH](ops-config-folder-temporary-files.md) defaults to 'temp' folder inside AYANOVA_DATA_PATH - AYANOVA_LOG_PATH defaults to 'logs' folder inside AYANOVA_DATA_PATH ## Override individual locations diff --git a/docs/8.0/ayanova/docs/ops-restore.md b/docs/8.0/ayanova/docs/ops-restore.md index c7cbb65d..883847e9 100644 --- a/docs/8.0/ayanova/docs/ops-restore.md +++ b/docs/8.0/ayanova/docs/ops-restore.md @@ -50,9 +50,17 @@ PostgreSQL will display `database system is ready to accept connections` indicat Check the [server configuration](ops-config-environment-variables.md) and identify the location of the attachment files. There are two ways this can be specified, either directly through the [AYANOVA_ATTACHMENT_FILES_PATH](ops-config-folder-user-files.md) setting or indirectly through the [AYANOVA_DATA_PATH](ops-config-data-path.md) setting in which case the attachments folder will be found in a folder called `attachments` inside the folder specified by the AYANOVA_DATA_PATH setting. -### Make a copy of the server data folder +### Make a copy of the AyaNova server's data folder + +If there is any existing data then a file system copy of any existing AyaNova server's [data folders](ops-config-data-path.md) to a safe location should be done first as a precaution. + +Restoring data will wipe out any existing data and mistakes can happen. + +If you have used the default configuration all data will be stored in sub-folders under the single folder specified in the [AYANOVA_DATA_PATH](ops-config-data-path.md). If you have split them out into [individually specified locations](ops-config-data-path.md) then be sure to make copies of each of them before proceeding with restoration. + +The location of these folders is also logged on server startup in the [server log](ops-log.md) and also can be viewed in the AyaNova user interface on the [server information](ops-server-information.md) page. + -If there is any existing data then a file copy of the existing data folders to a safe location should be done first as a precaution. Restoring data will wipe out any existing data and mistakes can happen. ### Restore the attachments diff --git a/docs/8.0/ayanova/docs/ops-server-information.md b/docs/8.0/ayanova/docs/ops-server-information.md index f9c16b08..e887a937 100644 --- a/docs/8.0/ayanova/docs/ops-server-information.md +++ b/docs/8.0/ayanova/docs/ops-server-information.md @@ -2,6 +2,21 @@ This form shows information required for management and troubleshooting of the AyaNova server. This information is captured at startup of the server. +## Authorization Roles required + +This form is available to User's with the following [roles](ay-biz-admin-roles.md): + +Read only access + +- System operations +- System operations - restricted + +## How to access Server information + +Server information is accessed in the following way: + +- From the `Server operations` navigation pane `Server information` item. + ## Menu options #### Copy support information @@ -16,7 +31,7 @@ Displays the server [environment variables](ops-config-environment-variables.md) ### Server environment -Displays basic information about the AyaNova server host machine. +Technical information about the AyaNova server host machine. ### DB Server parameters diff --git a/server/AyaNova/Controllers/AttachmentController.cs b/server/AyaNova/Controllers/AttachmentController.cs index 09396468..aab901f6 100644 --- a/server/AyaNova/Controllers/AttachmentController.cs +++ b/server/AyaNova/Controllers/AttachmentController.cs @@ -623,17 +623,7 @@ namespace AyaNova.Api.Controllers using (var dr = await cmd.ExecuteReaderAsync()) { while (dr.Read()) - { - // var v = new FileAttachmentListItem(); - // v.Id = dr.GetInt64(0); - // v.DisplayFileName = dr.GetString(1); - // v.ContentType = dr.GetString(2); - // v.LastModified = dr.GetDateTime(3); - // v.Notes = dr.GetString(4); - // v.AttachedByUser = dr.GetString(5); - // v.Size = dr.GetInt64(6); - // retList.Add(v); - + { retList.Add(new FileAttachmentListItem() { Id = dr.GetInt64(0),