Skip to content

Commit 5776b89

Browse files
authored
Merge pull request ClickHouse#80088 from shankar-iyer/disable_enble_url_encoding
Default of enable_url_encoding set to 0
2 parents 061b2a9 + eca30f6 commit 5776b89

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

base/poco/Foundation/src/URI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ void URI::encodePath(std::string & encodedStr) const
690690
if (_enable_url_encoding)
691691
encode(_path, RESERVED_PATH, encodedStr);
692692
else
693-
encodedStr = _path;
693+
encodedStr = encodedStr + _path;
694694
}
695695

696696
void URI::decodePath(const std::string & encodedStr)

src/Core/Settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5041,10 +5041,10 @@ Possible values:
50415041
- 0 — `SELECT` throws an exception if empty file is not compatible with requested format.
50425042
- 1 — `SELECT` returns empty result for empty file.
50435043
)", 0) \
5044-
DECLARE(Bool, enable_url_encoding, true, R"(
5044+
DECLARE(Bool, enable_url_encoding, false, R"(
50455045
Allows to enable/disable decoding/encoding path in uri in [URL](../../engines/table-engines/special/url.md) engine tables.
50465046
5047-
Enabled by default.
5047+
Disabled by default.
50485048
)", 0) \
50495049
DECLARE(UInt64, database_replicated_initial_query_timeout_sec, 300, R"(
50505050
Sets how long initial DDL query should wait for Replicated database to process previous DDL queue entries in seconds.

src/Core/SettingsChangesHistory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const VersionToSettingsChangesMap & getSettingsChangesHistory()
106106
{"use_legacy_to_time", false, false, "New setting. Allows for user to use the old function logic for toTime, which works as toTimeWithFixedDate."},
107107
{"input_format_parquet_bloom_filter_push_down", false, true, "When reading Parquet files, skip whole row groups based on the WHERE/PREWHERE expressions and bloom filter in the Parquet metadata."},
108108
{"input_format_parquet_allow_geoparquet_parser", false, true, "A new setting to use geo columns in parquet file"},
109+
{"enable_url_encoding", true, false, "Changed existing setting's default value"},
109110
{"s3_slow_all_threads_after_network_error", false, true, "New setting"},
110111
});
111112
addSettingsChanges(settings_changes_history, "25.4",

0 commit comments

Comments
 (0)