`include` target folder named `certs` or `certificates` gives a runtime action error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu với các mục include trong app.config.yaml và tái hiện sự cố bằng aio app run, aio rt action invoke và aio rt activation get. So sánh target secrets/ đang hoạt động với certs/ và certificates/, sau đó lần theo lỗi runtime qua services/runner.js; hoàn tất khi cả hai tên target chứng chỉ đều tạo ra một activation thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Are there any reserved names for the target "folder" when using include to configure a runtime action?
We are experiencing the following behavior:
- an include declared as this one works
include:
- ["files/*.p12", "secrets/"]
but these two (targeting to certs and certificates) cause the action to yield an error when invoked
include:
- ["files/*.p12", "certs/"]
and
include:
- ["files/*.p12", "certificates/"]
The error we get when calling aio rt activation get XXXXXX is
"error": "Initialization has failed due to: Error: Cannot find module '/nodejsAction/47jUsebx'\nRequire stack:\n- /nodejsAction/services/runner.js\n- /nodejsAction/services/service.js\n- /nodejsAction/routes/action.js\n- /nodejsAction/app.js\n- /nodejsAction/server.js\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)\n at Function.Module._load (node:internal/modules/cjs/loader:804:27)\n at Module.require (node:internal/modules/cjs/loader:1028:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at eval (eval at <anonymous> (/nodejsAction/services/runner.js:76:49), <anonymous>:1:1)\n at /nodejsAction/services/runner.js:76:49\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
To Reproduce
Steps to reproduce the behavior:
- Configure a
genericruntime action with an include like this inapp.config.yaml
include:
- ["files/*.p12", "certs/"]
- Run the application with
aio app run - Call the action with
aio rt action invoke xxxxxxxx/generic - Get the invocation result with
aio rt activation get UUID
5 In the invocation details the following error can be seen:
"response": {
"result": {
"error": "Initialization has failed due to: Error: Cannot find module '/nodejsAction/47jUsebx'\nRequire stack:\n- /nodejsAction/services/runner.js\n- /nodejsAction/services/service.js\n- /nodejsAction/routes/action.js\n- /nodejsAction/app.js\n- /nodejsAction/server.js\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)\n at Function.Module._load (node:internal/modules/cjs/loader:804:27)\n at Module.require (node:internal/modules/cjs/loader:1028:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at eval (eval at <anonymous> (/nodejsAction/services/runner.js:76:49), <anonymous>:1:1)\n at /nodejsAction/services/runner.js:76:49\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
},
"size": 765,
"status": "application error",
"success": false
},
Expected behavior
A successful rt action activation
Screenshots
Desktop (please complete the following information):
- OS: macOs
- Browser: chrome
- Version
> aio --version
@adobe/aio-cli/9.2.0 darwin-arm64 node-v16.18.1
Smartphone (please complete the following information):
N/A
Additional context
Here's a repo enterprise-integration/client-cert-poc containing
- a working include in
masterand - a failing include in the
ACSP-44-broken-includebranch
Here's a slack thread with a discussion about this bug: https://magento.slack.com/archives/C013UDBFBGB/p1684146514658789
- Ngôn ngữ chính
- JavaScript
- Star
- 28
- Fork
- 41
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của adobe/aio-cli-plugin-app
-
app:pack aborts when Node writes process warnings to api-mesh stderrCó thể đã có người làm @raj-prince587 đã nhận 71 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
adobe/aio-cli-plugin-app#930 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
adobe/aio-cli-plugin-app#924 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
adobe/aio-cli-plugin-app#919 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
adobe/aio-cli-plugin-app#890 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
adobe/aio-cli-plugin-app#881 · 1 bình luận ·
Tất cả issue của adobe/aio-cli-plugin-app
Issue tương tự
-
effort:low model:light plan planner:fable-5-1 test-quality tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: agent area: theme help wanted lane: free-agent roadmap size: S status: needs-brief type: layout type: task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
arminazimi/slipway#64 ·
-
release:v5.34
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Jason-Vaughan/TangleClaw#2469 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hacktoberfest help wanted skip-changelog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
wassim-azi/agy-powerline#74 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
MadeBaruna/paimon-moe#696 ·