I have a question about the project's expectations regarding error
processing for invalid server responses.
We had a situation where there was severe server misconfiguration and
the server was returning garbage responses. For example, for a
manifest/0 call, it was returning content that looked like a catalog.
Also there were HTTP headers mixed in with the content. Basically, the
repository server was really messed up (because of the Apache front-end).
When using the pkg(1) command with this server, it was generating
tracebacks from unexpected exceptions. For example, one of the
tracebacks came from the action parsing code when it was trying to parse
a catalog entry as an action. My question is, should I file bugs for
this? Then end of the traceback in this case was this:
File "C:\Sun\UpdateCenter\UC21\GF-PreIntegration\B39-zip\glassfish-v3-web-ea-b
39\glassfishv3\pkg\vendor-packages\pkg\manifest.py", line 254, in set_content
action = actions.fromstr(l)
File "C:\Sun\UpdateCenter\UC21\GF-PreIntegration\B39-zip\glassfish-v3-web-ea-b
39\glassfishv3\pkg\vendor-packages\pkg\actions\__init__.py", line 119, in fromst
r
type, hash, attr_dict = _fromstr(string)
MalformedActionError: Malformed action in package 'pkg:/[email protected]
<mailto:[email protected]>,0-18.1681:2009
0122T211352Z': missing value at position 85:
V pkg:/[email protected] <mailto:[email protected]>,0-0:20090304T210712ZV
pkg:/[email protected] <mailto:[email protected]>,0-39:2009030
4T211359Z
^
pkg: This is an internal error. Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message. The version of pkg(5) is '7570d3749c6f'.
Generally, is there a project expectation that no matter what the server
returns, the pkg(1) command should never display a traceback?
Thanks.
Tom
begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;SWI Install/Update Software
adr:;;21915 Hillandale Dr;Elkhorn;NE;68022;USA
email;internet:[email protected]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-916-9943
x-mozilla-html:TRUE
version:2.1
end:vcard
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss