You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-58Lines changed: 13 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ This plugin can be consumed by the CAP application deployed on BTP to store thei
24
24
- Attachment changelog: Provides the capability to view complete audit trail of attachments.
25
25
- Localization of error messages and UI fields: Provides the capability to have the UI fields and error messages translated to the local language of the leading application.
26
26
- Attachment Upload Status: Upload Status is the new field which displays the upload status of attachment when being uploaded.
27
-
- Attachment Virus Scanning: Provides the capability to scan uploaded attachments for viruses using either Malware Scan (synchronous) or Trend Micro Scan (asynchronous) during the upload process.
28
27
29
28
## Table of Contents
30
29
@@ -43,7 +42,6 @@ This plugin can be consumed by the CAP application deployed on BTP to store thei
43
42
-[Support for Link type attachments](#support-for-link-type-attachments)
44
43
-[Support for Edit of Link type attachments](#support-for-edit-of-link-type-attachments)
45
44
-[Support for Localization](#support-for-localization)
46
-
-[Support for Attachment Virus Scanning](#support-for-attachment-virus-scanning)
47
45
-[Support for Attachment Upload Status](#support-for-attachment-upload-status)
@@ -70,7 +68,7 @@ This plugin can be consumed by the CAP application deployed on BTP to store thei
70
68
71
69
## Setup
72
70
73
-
In this guide, we use the Bookshop sample app in the [deploy branch](https://github.com/cap-java/sdm/tree/deploy) of this repository, to integrate SDM CAP plugin. Follow the steps in this section for a quick way to deploy and test the plugin without needing to create your own custom CAP application.
71
+
In this guide, we use the Bookshop sample app in the [local_deploy branch](https://github.com/cap-java/sdm/tree/local_deploy) of this repository, to integrate SDM CAP plugin. Follow the steps in this section for a quick way to deploy and test the plugin without needing to create your own custom CAP application.
74
72
75
73
### Using the released version
76
74
If you want to use the version of SDM CAP plugin released on the central maven repository follow the below steps:
@@ -83,10 +81,10 @@ If you want to use the version of SDM CAP plugin released on the central maven r
83
81
git clone https://github.com/cap-java/sdm
84
82
```
85
83
86
-
3. Checkout to the branch **deploy**:
84
+
3. Checkout to the branch **local_deploy**:
87
85
88
86
```sh
89
-
git checkout deploy
87
+
git checkout local_deploy
90
88
```
91
89
92
90
4. Navigate to the demoapp folder:
@@ -130,10 +128,10 @@ To use a development version of the SDM CAP plugin, follow these steps. This is
130
128
```
131
129
The plugin is now added to your local .m2 repository, giving it priority over the version available in the central Maven repository during the application build.
132
130
133
-
3. Checkout to the branch **deploy**:
131
+
3. Checkout to the branch **local_deploy**:
134
132
135
133
```sh
136
-
git checkout deploy
134
+
git checkout local_deploy
137
135
```
138
136
139
137
4. Navigate to the demoapp folder:
@@ -1187,11 +1185,17 @@ annotate my.Books.attachments with @UI: {
- When a file is uploaded to a Trend Micro scan-enabled repository, the initial status displays as **"Uploading"**.
1312
-
- The status then transitions to **"Virus Scanning in Progress"**.
1313
-
- After the scan completes:
1314
-
- If the attachment is virus-free, the status changes to **"Success"** (requires page refresh).
1315
-
- If a virus is detected, the status changes to **"Virus Detected"** and the user must manually delete the file before saving the entity.
1316
-
1317
-
**Key Considerations:**
1318
-
- There is no restriction on file size for Trend Micro scanning.
1319
-
- Files with **"Virus Scanning in Progress"** or **"Virus Detected"** status cannot be downloaded or viewed.
1320
-
- Users need to refresh the page to see updated scan results.
1321
1283
1322
1284
## Support for Attachment Upload Status
1323
1285
@@ -1329,19 +1291,12 @@ The upload status transitions from "Uploading" to "Success".
1329
1291
**For repositories with malware scanning:**
1330
1292
The upload status transitions from "Uploading" to "Success" if no virus is detected. If a virus is detected, the attachment is automatically deleted.
1331
1293
1332
-
**For repositories with Trend Micro virus scanning:**
1333
-
The upload status transitions from "Uploading" to "Virus Scanning in Progress". After refreshing the page, if the scan completes successfully and the attachment is virus-free, the status changes to "Success". If a virus is detected, the status changes to "Virus Detected" and the user must manually delete the file before saving the entity.
1334
-
1335
-
**Note:** Files with "Virus Scanning in Progress" or "Virus Detected" status cannot be downloaded or viewed.
1336
-
1337
1294
To display color-coded status indicators in the UI, create a `sap.attachments-UploadScanStates.csv` file in the `db/data` folder with the following content:
0 commit comments