Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow $data['request'] to be 5 levels deep #554

Merged
merged 3 commits into from
Apr 20, 2018

Conversation

martinstuecklschwaiger
Copy link
Contributor

A normal POST request in a PHP application can be up to 3 levels deep. In $data['request'] there are 2 additional arrays wrapped around it, so that the serializer removes most of the data. (I added a screenshot to show how that looks in the UI).

This pull request raises the max_depth for the request data to 5.
I also adjusted the test to use more realistic data so that it's better understandable.
I added another test so that the truncation is still covered by a test.

screenshot from 2018-02-21 21-57-31

Use 'data' content as in a real application (in CakePHP this is real
data as one would receive in a request).
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

I would personally not be against this since I am seeing a lot of truncated data too, almost never enough like it is now. Looked back at the previous discussions and I don't think there is much against this? /cc @Jean85 & @dcramer

@stayallive stayallive requested a review from dcramer February 23, 2018 09:47
Copy link
Collaborator

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

I agree with @stayallive, this should work well...

@stayallive
Copy link
Collaborator

This snowed under a but, thanks again for your contribution!

@stayallive stayallive merged commit 625d5e5 into getsentry:master Apr 20, 2018
@Jean85 Jean85 mentioned this pull request May 3, 2018
27 tasks
Jean85 added a commit that referenced this pull request May 9, 2018
* Fix gzipCompress function name

PHP doesn't have `gzipCompress` function, use `gzcompress` instead
http://php.net/manual/en/function.gzcompress.php

(cherry picked from commit d391712)

* Fix notice during tests

* Fix Client PHPDoc tag (port of #548 to 2.x)

* Added syntax highlighting to README.md (#551)

(cherry picked from commit 4dd0a3e)

* Add use statement for HttpException class

(cherry picked from commit 389c3ac, port of #556 to 2.x)

* Change badge with badge poser.

(cherry picked from commit 47ce095, port of #557 to 2.x)

* Update docs config

(cherry picked from commit f9c90cf)

* Add test to handle non default port in host (port of #572 to 2.x)

* Update changelog with 1.8.4 info (port of #573 to 2.x)

* Allow serialization 5 levels deep (port of #554 to 2.x)

* Make Serializer string limit customizable (port of #559 to 2.x)

* Avoid looping when exception throws exception (port of #587 to 2.x)

* Fix monolog handler not accepting Throwable (port of #586 to 2.x)

* Fix serializer to account for non-UTF-8 chars (port of #553 to 2.x)

* Add 1.9.0 changelog entries

(cherry picked from commit 01171cf)

* Add timeout and excluded_options config docs

(cherry picked from commit 6860a3e)

* Add back unrelease heading to changelog

(cherry picked from commit 3f52e6f)

* Fix CS
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants