diff --git a/lib/pact_broker/locale/en.yml b/lib/pact_broker/locale/en.yml index 1c8f31a21..222d32b27 100644 --- a/lib/pact_broker/locale/en.yml +++ b/lib/pact_broker/locale/en.yml @@ -10,6 +10,7 @@ en: non_templated_host?: "cannot have a template parameter in the host" pacticipant_exists?: "does not match an existing pacticipant" + pact_broker: messages: response_body_hidden: For security purposes, the response details are not logged. To enable response logging, configure the webhook_host_whitelist property. See %{base_url}/doc/webhooks#whitelist for more information. @@ -53,6 +54,9 @@ en: $ curl -v -XPOST -H "Content-Type: application/json" -d "{\"name\": \"%{new_name}\"}" %{create_pacticipant_url} If the pact broker requires basic authentication, add '-u ' to the command. To disable this check, set `check_for_potential_duplicate_pacticipant_names` to false in the configuration. + new_line_in_url_path: URL path cannot contain a new line character. + tab_in_url_path: URL path cannot contain a tab character. + "400": title: 400 Malformed Request message: The request was malformed and could not be processed. diff --git a/lib/rack/pact_broker/invalid_uri_protection.rb b/lib/rack/pact_broker/invalid_uri_protection.rb index c9fff3454..c8199c151 100644 --- a/lib/rack/pact_broker/invalid_uri_protection.rb +++ b/lib/rack/pact_broker/invalid_uri_protection.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true require 'uri' +require 'pact_broker/messages' + # This class is for https://github.com/pact-foundation/pact_broker/issues/101 # curl -i "http://127.0.0.1:9292/