You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Chuck Adams (JIRA)" <ji...@apache.org> on 2010/05/10 19:55:41 UTC

[jira] Created: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

option to exec component to not use stderr when stdout is empty
---------------------------------------------------------------

                 Key: CAMEL-2706
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
             Project: Apache Camel
          Issue Type: Improvement
    Affects Versions: 2.3.0
            Reporter: Chuck Adams


When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2706:
-------------------------------

    Fix Version/s: 2.3.0
                   2.4.0
         Priority: Minor  (was: Major)

Lets see if we can get it done before the 2.3 release, but Hadrian if you are listening, go ahead and cut the 2.3 release. I will try to get this fixed over the weekend.

> option to exec component to not use stderr when stdout is empty
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2706
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: Chuck Adams
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.3.0, 2.4.0
>
>
> When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-2706:
----------------------------------

    Assignee: Claus Ibsen

> option to exec component to not use stderr when stdout is empty
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2706
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: Chuck Adams
>            Assignee: Claus Ibsen
>
> When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2706.
--------------------------------

    Fix Version/s:     (was: 2.4.0)
       Resolution: Fixed

trunk: 944656.

It will now *not* fallback to use stderr if stdout is empty. You can use the new option to turn back the old behavior.

Updated wiki page as well.

> option to exec component to not use stderr when stdout is empty
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2706
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: Chuck Adams
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

Posted by "Chuck Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59322#action_59322 ] 

Chuck Adams commented on CAMEL-2706:
------------------------------------

useStderrOnEmptyStdout perhaps?  A bit wordy, but descriptive.  Perhaps fallbackStderr?


> option to exec component to not use stderr when stdout is empty
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2706
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: Chuck Adams
>
> When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2706) option to exec component to not use stderr when stdout is empty

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59288#action_59288 ] 

Claus Ibsen commented on CAMEL-2706:
------------------------------------

I agree Chuck that there should be such an option, with the defaults *not* to grab stderro if stdout is empty.

What would a good name for such an option be?

> option to exec component to not use stderr when stdout is empty
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2706
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2706
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: Chuck Adams
>
> When the camel exec component gets no output on stdout, it returns the contents of stderr when performing its standard string conversion.  Could an option be added to exec: urls to suppress this behavior, so that when stdout is empty, it remains empty regardless of stderr?  IMHO suppressing it should be the default behavior, since one is rarely able to treat stderr's content the same as stdout except for simple cases like logging, but as long as the option is available, I'll take it either way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.