Closed GoogleCodeExporter closed 9 years ago
I think this is a feature of the Python API. The generated Java client has:
public List<Shift> getShifts() {
if (shifts == null) {
shifts = new ArrayList<Shift>();
}
return this.shifts;
}
so Java users don't see the problem. I think this will require a fix on any
Python code.
I think this will get changed to WontFix but people should be allowed to
comment first.
Steve
Original comment by dr.s.m.f...@gmail.com
on 6 Jan 2014 at 4:06
That is exactly why I checked the issue on the level of the SOAP messages, to
make sure that it is not due to client interference: shifts is not included in
the server reply.
It may be that the Java client tries to works around this by inventing an empty
list in the reply when there is none. Whether this client behavior does more
good or more harm is a separate question.
It makes a difference whether there are no shifts in the investigation object
because the search request didn't ask to include them or whether the list of
shifts is actually empty because none have been found at the server.
Original comment by rolf.kr...@helmholtz-berlin.de
on 7 Jan 2014 at 7:36
Python code will have to deal with this. It is not an ICAT issue as far as I
can see. I will therefore mark it as invalid.
Original comment by dr.s.m.f...@gmail.com
on 10 Mar 2014 at 12:52
Original issue reported on code.google.com by
rolf.kr...@helmholtz-berlin.de
on 6 Jan 2014 at 11:49