tryzealot/zealot

[Bug]: 应用中添加了一个没有渠道的类型 进入该应用的其他类型的渠道会导致异常

Closed this issue · 4 comments

部署方式 | How to Deploy

Docker (Default)

部署版本 | Version

5.1.0

Git 哈希值 (长度 40)| Git Ref (40 length)

c30d95d

反代服务 | Reverse Proxy

nginx

HTTPS 证书类型 | HTTPS(SSL)

可受信任的证书 Verified SSL

已阅读文档 | Read the document

  • 已阅读 | Yes

描述 | Description

我很抱歉我不知道如何使用代码对其实现最小重现,我将尽可能的详细的描述重现流程.

  1. 进入管理面板并使用管理员账号登录
  2. 创建一个新应用,例如:zealot音乐
  3. 新增一个类型(typeA)并添加渠道(iOS,Android等)
  4. 新增一个类型(typeB),不对其添加渠道
  5. 点击类型(typeA)的渠道(Android)
  6. 页面提示"非常抱歉,服务当前遇到一些技术问题造成访问异常。"

补充:
当删除没有渠道的类型(typeB)后,再执行 5. 点击类型(typeA)的渠道(Android) ,可以恢复正常.
已多次测试以上流程一定复现此问题.

复现页面如下
image

错误页面如下
image

问题日志 | Relevant log output

2024-03-14T10:11:28.820804730Z method=GET path=/M6QIR/overview format=html controller=ChannelsController action=show status=500 allocations=6126 duration=27.20 view=0.00 db=6.08 time=2024-03-14 18:11:28 +0800 exception=["ActionView::Template::Error", "No route matches {:action=>\"show\", :channel=>nil, :controller=>\"channels\"}, possible unmatched constraints: [:channel]\nDid you mean?  friendly_channel_overview_url"] exception_object=No route matches {:action=>"show", :channel=>nil, :controller=>"channels"}, possible unmatched constraints: [:channel]
2024-03-14T10:11:28.820811941Z Did you mean?  friendly_channel_overview_url ip=172.20.0.5 username=管理员

感谢你提交的问题或反馈,我会在有时间的时候回复在此期间你可以看看之前被解决的反馈说不定有你需要的答案。
Thanks for opening this issue, a maintainer will get back to you shortly!

问题确认

问题已修复,拉取最新镜像并重新部署即可

感谢您的快速响应和修复!非常感谢您的帮助,我会测试一下修复后的版本并确认问题已经解决。再次感谢!