Skip to content

Better handling of URI's in PocoHTTPClient - #23822

Merged
alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
excitoon-favorites:equalsignins3path
May 10, 2021
Merged

alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
excitoon-favorites:equalsignins3path

Conversation

@excitoon

@excitoon excitoon commented Apr 30, 2021 •

Copy link
Copy Markdown
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Better handling of URI's in PocoHTTPClient. Fixed bug with URLs containing + symbol, data with such keys could not be read previously.

Progress on #23283

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Apr 30, 2021
@excitoon

Copy link
Copy Markdown
Contributor Author

This definitely fixes behavior of + but I was not able to reproduce a bug with =.

Comment thread src/IO/S3/PocoHTTPClient.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@alexey-milovidov alexey-milovidov self-assigned this May 1, 2021
@alexey-milovidov
alexey-milovidov marked this pull request as draft May 1, 2021 08:30
@excitoon
excitoon marked this pull request as ready for review May 3, 2021 01:51
@excitoon
excitoon force-pushed the equalsignins3path branch from 9823431 to b9b16ef Compare May 3, 2021 19:11
@alexey-milovidov

Copy link
Copy Markdown
Member
Неправильная строка для changelog.

Если попадает в категорию bugfix - необходимо написать, какое поведение ClickHouse с точки зрения пользователя было ошибочным (какая ошибка исправлена).

Внутренности кода никого не волнуют, их не надо писать в changelog. 

Ты написал:

> Better handling of URI's in PocoHTTPClient. Poco and AWS C++ SDK have different encoding schemes for URI's which could lead to strange errors.

Это издевательство над пользователем.

@excitoon

excitoon commented May 6, 2021

Copy link
Copy Markdown
Contributor Author
Неправильная строка для changelog.

Если попадает в категорию bugfix - необходимо написать, какое поведение ClickHouse с точки зрения пользователя было ошибочным (какая ошибка исправлена).

Внутренности кода никого не волнуют, их не надо писать в changelog. 

Ты написал:

> Better handling of URI's in PocoHTTPClient. Poco and AWS C++ SDK have different encoding schemes for URI's which could lead to strange errors.

Это издевательство над пользователем.

@alexey-milovidov Done.

@excitoon
excitoon requested a review from alexey-milovidov May 6, 2021 05:56
@excitoon
excitoon force-pushed the equalsignins3path branch from cd966e2 to 524113f Compare May 6, 2021 08:29
@Enmk

Enmk commented May 6, 2021 •

Copy link
Copy Markdown
Contributor
Неправильная строка для changelog.

Если попадает в категорию bugfix - необходимо написать, какое поведение ClickHouse с точки зрения пользователя было ошибочным (какая ошибка исправлена).

Внутренности кода никого не волнуют, их не надо писать в changelog. 

Ты написал:

> Better handling of URI's in PocoHTTPClient. Poco and AWS C++ SDK have different encoding schemes for URI's which could lead to strange errors.

Это издевательство над пользователем.

@alexey-milovidov Done.
Maybe something like:

Fixed accessing S3 data via URLs containing '+' by encoding it as '%2B'

?

Also:
https://forums.aws.amazon.com/thread.jspa?threadID=55746
aws/aws-sdk-java#1946

@alexey-milovidov
alexey-milovidov merged commit 0400070 into ClickHouse:master May 10, 2021
Enmk added a commit to Altinity/ClickHouse that referenced this pull request May 19, 2021
[port of ClickHouse#23822 to Altinity 21.1]: Better handling of URI's in PocoHTTPClient
excitoon pushed a commit to excitoon-favorites/ClickHouse that referenced this pull request Jun 21, 2021
…ins3path

Better handling of URI's in `PocoHTTPClient`
excitoon pushed a commit to excitoon-favorites/ClickHouse that referenced this pull request Jun 21, 2021
…ins3path

Better handling of URI's in `PocoHTTPClient`
excitoon pushed a commit to excitoon-favorites/ClickHouse that referenced this pull request Jun 21, 2021
…ins3path

Better handling of URI's in `PocoHTTPClient`
excitoon pushed a commit to excitoon-favorites/ClickHouse that referenced this pull request Jun 21, 2021
…ins3path

Better handling of URI's in `PocoHTTPClient`
excitoon pushed a commit to excitoon-favorites/ClickHouse that referenced this pull request Jun 21, 2021
[port of ClickHouse#23822 to Altinity 21.1]: Better handling of URI's in PocoHTTPClient
Enmk pushed a commit to Altinity/ClickHouse that referenced this pull request Jul 22, 2021
…ins3path

Better handling of URI's in `PocoHTTPClient`
Enmk added a commit to Altinity/ClickHouse that referenced this pull request Jul 22, 2021
[port of ClickHouse#23822 to altinity/21.3] Better handling of URI's in PocoHTTPClient
Enmk added a commit to Altinity/ClickHouse that referenced this pull request Oct 12, 2021
[port of ClickHouse#23822 to altinity/21.3] Better handling of URI's in PocoHTTPClient
Enmk added a commit to Altinity/ClickHouse that referenced this pull request Feb 4, 2022
[port of ClickHouse#23822 to altinity/21.3] Better handling of URI's in PocoHTTPClient
Enmk added a commit to Altinity/ClickHouse that referenced this pull request May 31, 2022
[port of ClickHouse#23822 to Altinity 21.1]: Better handling of URI's in PocoHTTPClient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants