Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行私人app时,提示”请勿使用非法应用“ #49

Open
iceq674 opened this issue Apr 9, 2022 · 3 comments
Open

执行私人app时,提示”请勿使用非法应用“ #49

iceq674 opened this issue Apr 9, 2022 · 3 comments

Comments

@iceq674
Copy link

iceq674 commented Apr 9, 2022

我通过 app demo模板编写了自己的私人app,并将目录正确的放置到 w5/apps/ 下。

但当我在剧本使用这个 私人app时,提示我 ” 请勿使用非法应用“,可是在 帮助文档说明可以使用私人app。

请问如何解决这个问题

@sanjinhub
Copy link
Member

@iceq674
1、is_identification 的值必须是 w5soar
2、检查日志,看日志是否有报错信息

@iceq674
Copy link
Author

iceq674 commented Apr 11, 2022

@sanjinhub
我把以上的检查都做了一遍,但是仍然存在问题

但非常神奇的是,我将自己构造的私有app的三个参数名字
"summary","description","assignee"改为其他单词,如"word1","word2","word3",这个app竟然能够运行了!我反复检查了app.json和run.py上的这三个参数名字,确认是完全一致的~

尝试逐个改变单词进行复现。最终发现,是当参数名字为”description“时会出现错误提示” 请勿使用非法应用“。

这或许是一个类似”result“的系统变量?

下面是这个参数的声明和使用场景

{
      "key": "description",
      "type": "text",
      "required": true,
      "default": "earth"
}
issue_dict = {
            'project': {'key': 'SEC'},
            'summary': summary,
            'description': description,    //仅作为一个字典的值
            'issuetype': {'name': '缺陷'},
            'labels': ['w5']
}

————
补充w5.log,在上面找不到有帮助的提示

2022-04-11 15:49:09.775 | INFO     | asyncio.tasks:__step:280 - 202204111549094358629017 f0e912aa-b9ac-11ec-aaf1-0242ac110003 f1c9f220-b9ac-11ec-9c42-639ee3bf91b0 开始 剧本开始执行 0 2022-04-11 15:49:09
2022-04-11 15:49:09.782 | INFO     | asyncio.tasks:__step:280 - 202204111549094358629017 f0e912aa-b9ac-11ec-aaf1-0242ac110003 e790d740-b9ae-11ec-9c42-639ee3bf91b0 hello 请勿使用非法应用 1 2022-04-11 15:49:09
2022-04-11 15:49:09.786 | INFO     | asyncio.tasks:__step:280 - 202204111549094358629017 f0e912aa-b9ac-11ec-aaf1-0242ac110003 f282e1e0-b9ac-11ec-9c42-639ee3bf91b0 结束 剧本执行结束 0 2022-04-11 15:49:09

@sanjinhub
Copy link
Member

@iceq674 收到,可能有冲突,有时间我排查下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants