<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>? The right way to contribute a patch</title>
  <link rel="self" href="https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1099125" />
  <subtitle>? The right way to contribute a patch</subtitle>
  <id>https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1099125</id>
  <updated>2026-06-02T18:39:33Z</updated>
  <dc:date>2026-06-02T18:39:33Z</dc:date>
  <entry>
    <title>RE: ? The right way to contribute a patch - SMTP errors</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1104657" />
    <author>
      <name>Sergey Ushakov</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1104657</id>
    <updated>2008-07-24T07:47:34Z</updated>
    <published>2008-07-24T07:47:34Z</published>
    <summary type="html">Hi Jorge,&lt;br /&gt;&lt;br /&gt;thank you for your clarification and for looking into the patch.&lt;br /&gt;&lt;br /&gt;Frankly, I tried a lot to guess the initial intention of the code, but without significant success. My current guess is that the code may contain a programming error, so the current behavior is &amp;#34;provide special guidelines when SMTP server is not set up, and ignore any other problems&amp;#34;, while the initial intention might be &amp;#34;provide special guidelines when SMTP server is not set up, and let the other problems be handled in a standard way&amp;#34;.&lt;br /&gt;&lt;br /&gt;IMHO there are no &amp;#34;harmless&amp;#34; messaging exceptions that might be silently ignored. I&amp;#39;m sure any of them indicates a significant problem either with the portal infrastructure or with the visitor. I believe all of them deserve being reported and logged at ERROR level. Maybe further experience will show that some of them (visitor-related) may deserve some other handling too...&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t say now where I&amp;#39;ve borrowed the exception chain formatting pattern. But I have a strong feeling that somewhere in Liferay &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt; - maybe not the code itself but the idea of the formatted result. It&amp;#39;s sure that the whole exception chain is to be unwound in order to provide meaningful message. And sure, standard printStackTrace() may do the job, but the printout looks frigtening &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt; I believe not only to me, as I have seen many similar &amp;#34;refined&amp;#34; error messages without stacktrace while setting my Liferay up.&lt;br /&gt;&lt;br /&gt;Having revised the whole thing again, I can agree (if somebody insists) that I have removed an important feature of special guidance for the portal admin in case the mail server is not set up at all. If yes, I can add this special case back into the code...&lt;br /&gt;&lt;br /&gt;And the last - maybe running ahead a little. IMHO any problem with e-mailing deserves handling in a way that would generate an automatic incident ticket for the help desk. Unfortunately I still did not manage to realize if there is a standard help desk engine in Liferay, so any comments of yours are more than welcome...&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Sergey</summary>
    <dc:creator>Sergey Ushakov</dc:creator>
    <dc:date>2008-07-24T07:47:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: ? The right way to contribute a patch</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1100107" />
    <author>
      <name>Jorge Ferrer</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1100107</id>
    <updated>2008-07-23T08:13:26Z</updated>
    <published>2008-07-23T08:13:26Z</published>
    <summary type="html">Hi Sergey,&lt;br /&gt;&lt;br /&gt;Thanks for your patch. This is a good place to announce contributions if they are unheard.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve taken a look at your patch and seems simple and not harmful. I have a couple of questions:&lt;br /&gt;- Why do you remove the differentiation of the SocketException? I don&amp;#39;t know why it was being treated differently, but I would be reluctant to change it without knowing why it was done that way first.&lt;br /&gt;- Why do you need to iterate through nested exceptions manuall? Shouldn&amp;#39;t the exception object do it by iself?</summary>
    <dc:creator>Jorge Ferrer</dc:creator>
    <dc:date>2008-07-23T08:13:26Z</dc:date>
  </entry>
  <entry>
    <title>? The right way to contribute a patch</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1099124" />
    <author>
      <name>Sergey Ushakov</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1099124</id>
    <updated>2008-07-23T00:12:15Z</updated>
    <published>2008-07-23T00:12:15Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;&lt;br /&gt;some time ago I have submitted a patch to Liferay JIRA for LEP-4428 problem. I have done my best to follow the instructions I found, but probably I have missed something, as nothing has happened to the patch and the bug after that...&lt;br /&gt;&lt;br /&gt;Is there any special area at some forum to announce new patches being submitted?&lt;br /&gt;&lt;br /&gt;Turning to my specific case, I would really appreciate the patch either merged into the project mainstream or commented by someone. The patch deals with the issue that if there is a problem with SMTP server, most of e-mailing errors will be silently ignored and never brought to anybody&amp;#39;s attention. Meanwhile a visitor will be happily but vainly waiting for an e-mail that will never arrive...&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Sergey</summary>
    <dc:creator>Sergey Ushakov</dc:creator>
    <dc:date>2008-07-23T00:12:15Z</dc:date>
  </entry>
</feed>
