ParsePdu admin command can cause a panic #236

Closed
opened 2022-02-11 17:25:05 +00:00 by timokoesters · 5 comments
timokoesters commented 2022-02-11 17:25:05 +00:00 (Migrated from gitlab.com)

Reported by M0dex

panic message:

thread 'rocket-worker-thread' panicked at 'ruma can calculate reference hashes: Json(JsonFieldMissingFromObject("type"))', src/database/admin.rs:354:34
stack backtrace:
0: rust_begin_unwind
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:498:5
1: core::panicking::panic_fmt
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:107:14
2: core::result::unwrap_failed
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/result.rs:1613:5
3: conduit::database::admin::process_admin_message
4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
5: tokio::runtime::task::core::CoreStage<T>::poll
6: tokio::runtime::task::harness::Harness<T,S>::poll
7: std::thread::local::LocalKey<T>::with
8: tokio::runtime::thread_pool::worker::Context::run_task
9: tokio::runtime::thread_pool::worker::Context::run
10: tokio::macros::scoped_tls::ScopedKey<T>::set
11: tokio::runtime::thread_pool::worker::run
12: tokio::runtime::task::harness::Harness<T,S>::poll
13: tokio::runtime::blocking::pool::Inner::run
Reported by M0dex panic message: ``` thread 'rocket-worker-thread' panicked at 'ruma can calculate reference hashes: Json(JsonFieldMissingFromObject("type"))', src/database/admin.rs:354:34 stack backtrace: 0: rust_begin_unwind at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:498:5 1: core::panicking::panic_fmt at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:107:14 2: core::result::unwrap_failed at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/result.rs:1613:5 3: conduit::database::admin::process_admin_message 4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 5: tokio::runtime::task::core::CoreStage<T>::poll 6: tokio::runtime::task::harness::Harness<T,S>::poll 7: std::thread::local::LocalKey<T>::with 8: tokio::runtime::thread_pool::worker::Context::run_task 9: tokio::runtime::thread_pool::worker::Context::run 10: tokio::macros::scoped_tls::ScopedKey<T>::set 11: tokio::runtime::thread_pool::worker::run 12: tokio::runtime::task::harness::Harness<T,S>::poll 13: tokio::runtime::blocking::pool::Inner::run ```
timokoesters commented 2022-02-12 19:49:02 +00:00 (Migrated from gitlab.com)

assigned to @M0dEx

assigned to @M0dEx
M0dEx commented 2022-02-12 19:55:40 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
M0dEx commented 2022-02-12 21:06:19 +00:00 (Migrated from gitlab.com)

created branch 236-parsepdu-admin-command-can-cause-a-panic to address this issue

created branch [`236-parsepdu-admin-command-can-cause-a-panic`](/famedly/conduit/-/compare/next...236-parsepdu-admin-command-can-cause-a-panic) to address this issue
M0dEx commented 2022-02-12 21:08:48 +00:00 (Migrated from gitlab.com)

mentioned in merge request !304

mentioned in merge request !304
timokoesters commented 2022-02-12 21:22:38 +00:00 (Migrated from gitlab.com)

mentioned in commit 0c4b42ac13

mentioned in commit 0c4b42ac13be8ddf6f76a3b96a4ac4caff43fc82
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#236
No description provided.