Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`include` target folder named `certs` or `certificates` gives a runtime action error

Đang mở
#673 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

bug

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:

  1. Configure a generic runtime action with an include like this in app.config.yaml
include:
  - ["files/*.p12", "certs/"]
  1. Run the application with aio app run
  2. Call the action with aio rt action invoke xxxxxxxx/generic
  3. 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 master and
  • a failing include in the ACSP-44-broken-include branch

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của adobe/aio-cli-plugin-app

Tất cả issue của adobe/aio-cli-plugin-app

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.