Discourse Events 이벤트 이름에 이벤트 이름: 참가 "참석"으로 참여와 같이 따옴표를 넣으면
저장 시 PUT /posts/123에 500 오류가 발생하며(아마도 깨진 마크다운 때문일 것입니다) 문제는 이벤트의 모든 참석자가 지워지는 것처럼 보인다는 점입니다.
참고: 이 문제는 https://meta.discourse.org/t/discourse-livestream/341335와 함께 사용되었지만, 관련이 없다고 생각합니다.
Discourse Events 이벤트 이름에 이벤트 이름: 참가 "참석"으로 참여와 같이 따옴표를 넣으면
저장 시 PUT /posts/123에 500 오류가 발생하며(아마도 깨진 마크다운 때문일 것입니다) 문제는 이벤트의 모든 참석자가 지워지는 것처럼 보인다는 점입니다.
참고: 이 문제는 https://meta.discourse.org/t/discourse-livestream/341335와 함께 사용되었지만, 관련이 없다고 생각합니다.
Yikes, we will have a look at this some time in the coming week.
Given you are getting a 500, can you look in /logs and let us know what you see there?
I think what is happening is the unescaped quotes break the event markup, so no event is detected and the event is destroyed. Then when I remove the quotes and hit save again, a new event is created.
The 500 error during serialization is probably a related side-effect.
NoMethodError (undefined method `end_of_day' for nil)
plugins/discourse-calendar/app/models/discourse_post_event/event.rb:93:in `expired?'
plugins/discourse-calendar/app/models/discourse_post_event/event.rb:279:in `can_user_update_attendance'
plugins/discourse-calendar/app/serializers/discourse_post_event/event_serializer.rb:93:in `can_update_attendance'
(eval at /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/active_model_serializers-0.8.4/lib/active_model/serializer.rb:467):4:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:347:in `as_json'
activesupport (7.2.2.1) lib/active_support/json/encoding.rb:23:in `encode'
activesupport (7.2.2.1) lib/active_support/json/encoding.rb:23:in `encode'
activesupport (7.2.2.1) lib/active_support/core_ext/object/json.rb:42:in `to_json'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:331:in `to_json'
multi_json (1.15.0) lib/multi_json/adapters/oj.rb:56:in `dump'
multi_json (1.15.0) lib/multi_json/adapters/oj.rb:56:in `dump'
multi_json (1.15.0) lib/multi_json/adapter.rb:25:in `dump'
multi_json (1.15.0) lib/multi_json.rb:139:in `dump'
app/controllers/application_controller.rb:506:in `render_json_dump'
app/controllers/posts_controller.rb:301:in `update'
Thanks for the report @dsims, this will be fixed once this PR gets merged.
https://github.com/discourse/discourse-calendar/pull/716
It’s not the “best” fix, but at least the event won’t break if a user enters a " in one of the event modal’s fields.
이 주제는 마지막 답변 후 7일이 지나면 자동으로 닫힙니다. 더 이상 새 답변을 작성할 수 없습니다.