Hi Folks,

Sorry to bother, but I am having a heck of time migrating away from Jersey to 
CXF in 
Tika-ville. Please see TIKA-593 for a reference.

Right now, here:

http://svn.apache.org/repos/asf/tika/trunk/tika-server

I have all tests passing, having migrated away from using Jersey and onto CXF, 
save one test:

Xtest415 in UnpackageResourceTest

(I disabled it for now since it won't pass).

In our old Jersey setup, accessible from ViewVC here:

http://s.apache.org/jKU

You can see the former Jersey test harness for test415 that passed fine before.
It seems to have something to do with:

1. Accept parameter, and this thread:
http://s.apache.org/LMR

Apparently Jersey allowed us to not have to specify */*, which I think it used 
by default.

2. Jersey's behavior on the unknown "xxx/xxx" MediaType, which I don't think it 
let 
through (and threw back HTTP 415), but for whatever reason, CXF lets through and
it gets to the Tika AutoDetectParser, which barfs.

I guess I can update UnpackagerResource to guard against this and throw HTTP 
415 itself, but it seems a bit intrusive and I was really hoping for more of a 
seamless
Jar/Maven drop in fix.

Any guidance or help or context, in Tika ville or here, would be welcomed. 
Please feel
free to CC me directly on replies, [email protected], and [email protected] 
since we are not subscribed to the CXF users list.

Thanks!

Cheers,
Chris

P.S. Thanks for the help in IRC today Sergey

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to