Closed ohaddahan closed 7 years ago
@ohler55 I'm not sure what is the desired result in this case.
@ohaddahan Thank you for trying wabur. This particular class doesn't have unit tests defined, so there may be bugs hiding amidst.
Either ways, can you repeat your trial with the following workaround change to Configuration#merge_map
and get back to us?
def merge_map(prime, other)
prime.merge(other) { |key, prime_value, other_value|
case prime_value
when Hash
merge_map(prime_value, other_value)
when Array
prime_value + Array(other_value)
else
other_value
end
}
end
also, it'd be better if you could post your config file contents as well..
@ohaddahan The bug has been traced back to commit a0526e0
.
I have created a temporary
branch without that commit..
Feel free to continue testing WABuR by checking out branch temporary
locally.
Thank you for reporting this bug.
I'll look into it today. Thanks.
As for the desired behavior, maybe the correct behavior is to raise an exception as it indicates the configuration is wrong although a error message identifying the offending component would be better than the current one.
Sample configuration files are in examples/sample/wabur/wabur.conf and wabuse.json.
Sorry for the delay , pulled and it confirmed it's working now.
Excellent.
While trying to run the sample app it failed during initialisation. I added the stack trace and some prints I added. It seems the issue is that the
case
condition checksprime_value
and notother_value
. Hence we stumble on a case where the+
operator don't know how to concatHash
andArray
.