Q7

Strange output redirection in RepeatService

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.9
  • Fix Version/s: 1.3.10
  • Component/s: ECL
  • Labels:
    None
  • Test Mode:
    Manual

Description

It seems that repeat command does not return an aggregated output of a body:

status = doProcess.waitFor();
if (!status.isOK()) {
	content = CoreUtils.readPipeContent(output);
	for (Object o : content)
		process.getOutput().write(o);
	// return status;
	break;
}

So, the snippet like this shows '0':

repeat [val i] 5 {
	$i
} | length | str | show-alert

Activity

Hide
komaz added a comment - 04/Dec/13 2:54 PM

Andrey, do you remember why output is redirected only when status is not ok? Seems like a typo, as it makes no sense to redirect output in case of error, as execution will be aborted anyway

Show
komaz added a comment - 04/Dec/13 2:54 PM Andrey, do you remember why output is redirected only when status is not ok? Seems like a typo, as it makes no sense to redirect output in case of error, as execution will be aborted anyway
Hide
Stanislav Belyakov added a comment - 04/Dec/13 4:06 PM

Fixed content output for repeat command.

Show
Stanislav Belyakov added a comment - 04/Dec/13 4:06 PM Fixed content output for repeat command.

People

Vote (0)
Watch (0)

Dates

  • Created:
    04/Dec/13 2:52 PM
    Updated:
    04/Dec/13 4:06 PM
    Resolved:
    04/Dec/13 4:06 PM