-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Conversation
As a bonus, I added a link to the Slack channel. |
contributing/code/bugs.rst
Outdated
* 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
contributing/code/bugs.rst
Outdated
* 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 |
There was a problem hiding this comment.
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
contributing/code/bugs.rst
Outdated
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. |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
d61f587
to
1b8ed9f
Compare
contributing/code/bugs.rst
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
contributing/code/bugs.rst
Outdated
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 |
There was a problem hiding this comment.
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).
ca00866
to
f4cdad6
Compare
contributing/code/bugs.rst
Outdated
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
contributing/code/bugs.rst
Outdated
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.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/redact/remove/
There was a problem hiding this comment.
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?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
451eb28
to
f454943
Compare
contributing/code/bugs.rst
Outdated
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`_. |
There was a problem hiding this comment.
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
contributing/code/bugs.rst
Outdated
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.** |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexislefebvre @Pierstoval it really seems appropriate : http://www.linguee.fr/francais-anglais/search?source=anglais&query=redact WDYT?
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 🙂
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 then
There was a problem hiding this 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. 👍
Thanks @xabbuh 😊 |
Thank you @greg0ire. |
…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
* 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 ...
* 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 ...
* 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 ...
* 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 ...
* 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 ...
I miss a reference explaining how to do that properly and keep asking people to do it, so maybe here is the right place?