Skip to content

Explain how to provide a stack trace #7875

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 17, 2017
Merged

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented May 5, 2017

I miss a reference explaining how to do that properly and keep asking people to do it, so maybe here is the right place?

@greg0ire
Copy link
Contributor Author

greg0ire commented May 5, 2017

As a bonus, I added a link to the Slack channel.

* Ask for assistance on `Stack Overflow`_ or on the #symfony `IRC channel`_
if you're not sure if your issue is really a bug.
* Ask for assistance on `Stack Overflow`_ on the #symfony `IRC channel`_, or on
the #support channel of `the Symfony Slack` if you're not sure if your issue

Choose a reason for hiding this comment

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

I think he markup is broken for the Slack link

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, let's fix it.

* Ask for assistance on `Stack Overflow`_ or on the #symfony `IRC channel`_
if you're not sure if your issue is really a bug.
* Ask for assistance on `Stack Overflow`_ on the #symfony `IRC channel`_, or on
the #support channel of `the Symfony Slack` if you're not sure if your issue
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could add the link of the symfony slack

version, which should appear at the bottom of the page. *Do not* provide it
as a screenshot, since search engines will not be able to index the text
inside them. If the stack trace is long, consider enclosing it in a
``<details>`` html tag.
Copy link
Contributor

@Simperfit Simperfit May 5, 2017

Choose a reason for hiding this comment

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

Maybe we should warn people about security on what they put in the <details>

Copy link

@PeterFour PeterFour May 5, 2017

Choose a reason for hiding this comment

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

I think this even stand for SO or irc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah but the <details> part does not, and SO has its own reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe IRC and Slack need their own reference?

Choose a reason for hiding this comment

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

Correct, I meant that in the general sense, pasting stack trace somewhere need to be done carefully

@greg0ire greg0ire force-pushed the stack_trace branch 2 times, most recently from d61f587 to 1b8ed9f Compare May 5, 2017 15:32
@@ -32,9 +33,19 @@ If your problem definitely looks like a bug, report it using the official bug
* Give as much detail as possible about your environment (OS, PHP version,
Symfony version, enabled extensions, ...);

* If you want to provide a stack trace you got on an html page, be sure to
Copy link
Member

Choose a reason for hiding this comment

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

I think I'd recommend the opposite: always share the stack traces as images because they offer some protection against Google, etc. Remember that traces can contain sensitive information, so we don't make them searchable on Internet.

Copy link
Contributor Author

@greg0ire greg0ire May 8, 2017

Choose a reason for hiding this comment

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

IMO sensitive data is the exception, not the rule, and a big drawback of using them that I did not mention is that you can't copy paste from them, making the work harder for people who want to check files mentioned in it. Also, these images can be resized if too big, which can make the text illegible. Also if not cropped properly, they might contain even more sensitive data, like what the desktop of the reporter looks like. Finally, even with a screenshot, you should redact sensitive information, so...

Copy link
Contributor

Choose a reason for hiding this comment

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

If you expose sensitive information you are already F**ked, posting this in a screenshot will not prevent anyone from abusing this information. Not to mention that search engines can perform OCR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm also for plain text, because it allows search engines to match exception messages that people encounter, so they may be redirected to the correct issue just by googling the exception itself

able to index the text inside them. Same goes for errors encountered in a
terminal, do not take a screenshot, but learn how to copy/paste from it. If
the stack trace is long, consider enclosing it in a ``<details>`` html tag.
Be wary that stack traces may contain sensible information, and if it is the
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be made bold to make it more important (end less change to miss it).

@greg0ire greg0ire force-pushed the stack_trace branch 2 times, most recently from ca00866 to f4cdad6 Compare May 9, 2017 09:13
page. *Do not* provide it as a screenshot, since search engines will not be
able to index the text inside them. Same goes for errors encountered in a
terminal, do not take a screenshot, but learn how to copy/paste from it. If
the stack trace is long, consider enclosing it in a ``<details>`` html tag.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a link to a documentation example?

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'll try, let's hope the backticks I used do not confuse rst

terminal, do not take a screenshot, but learn how to copy/paste from it. If
the stack trace is long, consider enclosing it in a ``<details>`` html tag.
**Be wary that stack traces may contain sensitive information, and if it is
the case, be sure to redact them prior to posting your stack trace.**
Copy link
Contributor

Choose a reason for hiding this comment

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

s/redact/remove/

Copy link
Contributor Author

@greg0ire greg0ire May 9, 2017

Choose a reason for hiding this comment

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

What's wrong with "redact"? IMO it's very appropriate in this context (I'm saying that because I've seen a lot of "redacted" out there, didn't you?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@greg0ire greg0ire force-pushed the stack_trace branch 2 times, most recently from 451eb28 to f454943 Compare May 9, 2017 10:25
page. *Do not* provide it as a screenshot, since search engines will not be
able to index the text inside them. Same goes for errors encountered in a
terminal, do not take a screenshot, but learn how to copy/paste from it. If
the stack trace is long, consider enclosing it in a ` ``<details>`` html tag`_.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This link doesn't work, if anyone know how to fix it I'm all ears

terminal, do not take a screenshot, but learn how to copy/paste from it. If
the stack trace is long, consider enclosing it in a `<details> html tag`_.
**Be wary that stack traces may contain sensitive information, and if it is
the case, be sure to redact them prior to posting your stack trace.**
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean remove instead of redact?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I did not but you are the second person to ask me that, so let me check the meaning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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 see both of you are french so maybe you're just unaware that redact is a faux-ami ?

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right, I didn't know the meaning of redact. 😅 Maybe you should simply write edit?

Copy link
Contributor

Choose a reason for hiding this comment

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

I did know the meaning of "redact" so it didn't shocked me 🤣

Even though, if some people are confused, maybe the word should be changed without breaking the global understanding of the paragraph. Not every Symfony user is english-native 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexislefebvre edit does not convey the full meaning, and I don't think we should dumb it down with remove. I think people can easily infer the meaning of the word if they don't know it already, and that means they will have learned something, so IMO it's better to stick with that.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 then

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

I really like this a lot. 👍

@greg0ire
Copy link
Contributor Author

Thanks @xabbuh 😊

@xabbuh xabbuh added this to the 2.7 milestone May 15, 2017
@xabbuh
Copy link
Member

xabbuh commented May 17, 2017

Thank you @greg0ire.

@xabbuh xabbuh merged commit 1648c6f into symfony:2.7 May 17, 2017
xabbuh added a commit that referenced this pull request May 17, 2017
…iluz)

This PR was merged into the 2.7 branch.

Discussion
----------

Explain how to provide a stack trace

I miss a reference explaining how to do that properly and keep asking people to do it, so maybe here is the right place?

Commits
-------

1648c6f Minor fix
6d3ecc9 Minor changes
2972d23 Explain how to provide a stack trace
83f5e1d Add link to the Slack support channel
xabbuh added a commit that referenced this pull request May 17, 2017
@greg0ire greg0ire deleted the stack_trace branch May 17, 2017 10:32
xabbuh added a commit that referenced this pull request May 18, 2017
* 2.7: (21 commits)
  Update optional_dependencies.rst
  Fix xml blocks
  [#7875] minor tweaks
  Minor fix
  Minor changes
  [#7773] fix line length
  Add helpful remarks on custom DataCollector
  Remove use of deprecated security.exception_listener.class parameter
  Update resources.rst
  Fix incoherent ut8mb4 collation in Doctrine setup
  Fix decorating service definition
  fix empty XML element
  [#7873] add missing toctree entries
  Reworded the introduction of the contributing docs
  [HttpFoundation] Fix clearstatcache first arg
  Explain how to provide a stack trace
  Add link to the Slack support channel
  Mentioned FOSRestBundle's content negotiation
  Used the article example consistently in the example
  Update formats.rst
  ...
xabbuh added a commit that referenced this pull request May 18, 2017
* 2.8: (24 commits)
  Update optional_dependencies.rst
  Fix xml blocks
  pass only strings to loadUserByUsername()
  Fix Authenticator Class (getCredentials) example
  Added the picture that shows how GuardAuthenticationListener calls Authentication Guard methods.
  [#7875] minor tweaks
  Minor fix
  Minor changes
  [#7773] fix line length
  Add helpful remarks on custom DataCollector
  Remove use of deprecated security.exception_listener.class parameter
  Update resources.rst
  Fix incoherent ut8mb4 collation in Doctrine setup
  Fix decorating service definition
  fix empty XML element
  [#7873] add missing toctree entries
  Reworded the introduction of the contributing docs
  [HttpFoundation] Fix clearstatcache first arg
  Explain how to provide a stack trace
  Add link to the Slack support channel
  ...
weaverryan added a commit that referenced this pull request May 20, 2017
* origin/2.7: (51 commits)
  Avoid backticks in shell scripts
  Update optional_dependencies.rst
  Fix xml blocks
  [#7875] minor tweaks
  Minor fix
  Minor changes
  [#7773] fix line length
  Add helpful remarks on custom DataCollector
  Remove use of deprecated security.exception_listener.class parameter
  Update resources.rst
  Fix incoherent ut8mb4 collation in Doctrine setup
  Fix decorating service definition
  fix empty XML element
  [#7873] add missing toctree entries
  Reworded the introduction of the contributing docs
  [#7844] add XML and PHP config examples
  Property access
  [HttpFoundation] Fix clearstatcache first arg
  Explain how to provide a stack trace
  fix remaining setDefinition() call
  ...
weaverryan added a commit that referenced this pull request May 20, 2017
* 3.2: (39 commits)
  updating instance
  Avoid backticks in shell scripts
  Update optional_dependencies.rst
  Fix xml blocks
  pass only strings to loadUserByUsername()
  Fix Authenticator Class (getCredentials) example
  Documented addAnnotatedClassesToCompile() and the use of class patterns
  Added the picture that shows how GuardAuthenticationListener calls Authentication Guard methods.
  [#7205] minor tweak
  Simplified the use of transChoice()
  [#7875] minor tweaks
  Minor fix
  Minor changes
  Properly show all events and describe guard events
  [#7891] remove not needed sentence
  [#7773] fix line length
  Add helpful remarks on custom DataCollector
  Remove use of deprecated security.exception_listener.class parameter
  Update resources.rst
  Fix incoherent ut8mb4 collation in Doctrine setup
  ...
weaverryan added a commit that referenced this pull request May 20, 2017
* 3.4: (40 commits)
  Adding an article to explain the 3.3 changes, and how to upgrade
  updating instance
  Avoid backticks in shell scripts
  Update optional_dependencies.rst
  Fix xml blocks
  pass only strings to loadUserByUsername()
  Fix Authenticator Class (getCredentials) example
  Documented addAnnotatedClassesToCompile() and the use of class patterns
  Added the picture that shows how GuardAuthenticationListener calls Authentication Guard methods.
  [#7205] minor tweak
  Simplified the use of transChoice()
  [#7875] minor tweaks
  Minor fix
  Minor changes
  Properly show all events and describe guard events
  [#7891] remove not needed sentence
  [#7773] fix line length
  Add helpful remarks on custom DataCollector
  Remove use of deprecated security.exception_listener.class parameter
  Update resources.rst
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants