Skip to content

Conversation

schmidt-sebastian
Copy link
Contributor

NSQueryParams doesn't encode + to %2B, which breaks the List API since it treats + as space.

Note that other Storage APIs don't rely on query param encoding. There is already an integration tests that verifies that users can up and download files with + signs.

Fixes b/170259897

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Please add a changelog

@"o?prefix=%2Bfoo/&delimiter=/"];

self.fetcherService.testBlock =
^(GTMSessionFetcher *fetcher, GTMSessionFetcherTestResponse response) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you avoid the pragma with an approach like #6693?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am getting an unused variable warning, and I don't see how the code you linked to doesn't generate the same warning. Is there any trick I need to employ?

Copy link
Contributor Author

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

Sorry, forgot to push the Changelog. Added.

@"o?prefix=%2Bfoo/&delimiter=/"];

self.fetcherService.testBlock =
^(GTMSessionFetcher *fetcher, GTMSessionFetcherTestResponse response) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am getting an unused variable warning, and I don't see how the code you linked to doesn't generate the same warning. Is there any trick I need to employ?

@paulb777
Copy link
Member

paulb777 commented Oct 8, 2020

There's something weird going on with the XCTest macros. In the Messaging test, they reference self but not in the Storage test - I can't see what about the projects would trigger the difference.

I also don't reproduce the warning when I remove the #pragma's in the Storage test.

This probably isn't worth this much time - so I'm fine to merge as is.