Skip to content

Sanity-checking of some params#765

Merged
richvdh merged 1 commit intodevelopfrom
rav/param_checks
Dec 12, 2019
Merged

Sanity-checking of some params#765
richvdh merged 1 commit intodevelopfrom
rav/param_checks

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Dec 11, 2019

Some sanity-checking I added while I was trying to figure out where I was
getting an undefined event from.

Some sanity-checking I added while I was trying to figure out where I was
getting an undefined event from.
@richvdh richvdh requested a review from a team December 11, 2019 22:58
encode_base64_unpadded
);

use Carp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's Carp?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://perldoc.perl.org/Carp.html, which exports croak.

$self->get_current_state_event( "m.room.join_rules" ),
);
my $auth_events = $self->make_event_refs( @auth_events );

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to do the same checks for auth_events?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually no, that would be redundant. there's already a grep defined at line 384.

@richvdh richvdh merged commit cfd5c1e into develop Dec 12, 2019
@richvdh richvdh deleted the rav/param_checks branch December 12, 2019 13:34
anoadragon453 added a commit that referenced this pull request Mar 20, 2020
…ase-v1.8.x

* origin/release-v1.8.0: (27 commits)
  Test for outliers whose auth events are in a different room
  Test for receiving events with auth events in the wrong room
  enable frozen dicts in synapse (#778)
  Fix c&p error in #779
  Add support for synapse multi DB setups. (#775)
  Add console feedbak for the TAP output mode (#779)
  workaround for matrix-org/synapse#6536 (#772)
  Test for backfilled events whose prev_events cross room boundaries (#769)
  Add dendrite's logs to buildkite's artifacts (#773)
  Make the replication torture level adjustable (#771)
  Add test for removing redactions from search results (#747)
  Sanity-checking of some params (#765)
  Fix some 'undefined value' warnings (#768)
  Remove redundant fallback in on_request_federation_v1_event (#766)
  Deflake an AS test (#764)
  Add tests for outbound v2 invite API
  Fix diagnostics from logout test (#763)
  Add comment to explain what the v1 outbound test relies on
  Re-fix test names
  Fix test names
  ...
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

Successfully merging this pull request may close these issues.

2 participants