As a workaround for the Attachments stuck in antivirus queue for days problem I am trying to search for messages wit attachments stuck in the queue through the webservices. But when I try to use the ForumService.getAttachmentsByMessageID() method, all I get back is an internal server error. It doesn't matter whether I supply the messageID of a message with stuck attachments or with attachments that passed, I get an error all the time. The XML as collected by Wireshark is liseted below.
POST /rpc/soap/ForumService HTTP/1.1\r\n
Request Method: POST
Request URI: /rpc/soap/ForumService
Request Version: HTTP/1.1
Referer: app:/ForumClient.swf\r\n
[truncated] Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, text/css, image/png, image/jpeg, image/gif;q=0.8, application/x-shockwave-flash, video/mp4;q=0.9, flv-application/octet-stream;q=0.8,
x-flash-version: 10,0,12,36\r\n
Content-Type: text/xml; charset=utf-8\r\n
SOAPAction: ""\r\n
Content-Length: 403
User-Agent: Mozilla/5.0 (Windows; U; en-US) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5\r\n
Host: forums.adobe.com\r\n
Connection: Keep-Alive\r\n
[truncated] Cookie: jive.recentHistory=312c3435323635353b312c3431383938373b312c3434333932333b312c3434343833373b312c3434353332373b312c3434353033373b312c3434343537343b312c3434353433363b312c3434333237323b312c3434343532363b31342c333236333b3134
\r\n
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<tns:getAttachmentsByMessageID
xmlns:tns="http://jivesoftware.com/clearspace/webservices">
<messageID>
2085697
</messageID>
</tns:getAttachmentsByMessageID>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 500 Internal Server Error\r\n
Request Version: HTTP/1.1
Response Code: 500
Date: Sun, 05 Jul 2009 18:54:34 GMT\r\n
Content-Type: text/xml;charset=UTF-8\r\n
Content-Length: 227
Vary: Accept-Encoding,User-Agent\r\n
JP: D=28835 t=1246820074961895\r\n
Connection: close\r\n
\r\n
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>
soap:Server
</faultcode>
<faultstring>
Fault occurred while processing.
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Does anybody have any suggestions on collecting data about attachments through the webservices?
Hey again Jochem,
This looks like a bug on our end -- I'm working on building proxies so I can test this locally. I will let you know what I find.
As far as workarounds, I'm currently not aware of any...I will poke around and see what I can find on that front.
Cheers,
Brad
This looks like a bug on our end -- I'm working on building proxies so I can test this locally. I will let you know what I find.
Any luck on those proxies?
Hey Jochem,
Sorry for the delay -- some times we get back logged with customers we have contracts with and our free support doesn't get the attention it deserves.
Please verify that your user account has permission to view this message. Does this happen for all messages?
Thanks,
Brad
Brad Heller wrote on 8/3/2009 11:24 AM:
Please verify that your user account has permission to view this message. Does this happen for all messages?
The messages are world-readable: http://forums.adobe.com/message/2085697
It happens for all messages.
Jochem
--
Jochem van Dieten
Hey Jochem,
Yes, a bit of progress! The holdup is internal -- this just keeps slipping off my radar because it is going to consume so much time. I make some progress on it this morning. I will work on it further tonight as I'm working the midnight-9am PST shift these days and will have some time tonight.
Thanks,
Brad
Jochem,
Looks like I didn't have as much time today as I thought; however, I'm still cognizant of this. I will work on it tonight.
- Brad
brad.heller wrote:
Sorry for the delay -- some times we get back logged with customers we have contracts with and our free support doesn't get the attention it deserves.
I have to agree. My free support for your product, with all the detailed, fully documented, reproducable bugreports, doesn't get the attention it deserves ![]()
I appreciate the support, but that is not entirely correct. My cases are not submitted on behalf of a customer with a SLA.
Jochem,
I was never able to reproduce this. Attached is a .NET client I used to connect to the server via SOAP and download the image (the attachment for the message you listed earlier). Please review it and see if there is anything I'm doing that you're not...it looks like the key for my client was just sending the correct cookies?
- Brad
Brad Heller wrote on 8/27/2009 11:58 AM:
I was never able to reproduce this. Attached is a .NET client I used to connect to the server via SOAP and download the image (the attachment for the message you listed earlier). Please review it and see if there is anything I'm doing that you're not...
I was hoping we could keep it language independent and just look at the
SOAP and HTTP stuff. If you don't ask about languages I don't know I
won't ask about languages you don't know ![]()
I'll retest my stuff anyway this weekend to see if the recent changes to
the virus scanner that locked attachments have solved things because I
noticed earlier this week that the REST service works fine.
it looks like the key for my client was just sending the correct cookies?
I doubt that. If you are not sending the right cookies it will obviously
not work, but you will get an UnauthorizedException instead of an
internal server error.
Jochem
--
Jochem van Dieten
Jochem,
Sorry, I've always found C# to be very verbose -- any experience with OO languages makes it rather easy to read. None the less, here are the HTTP headers and their payloads.
POST /rpc/soap/ForumService HTTP/1.1\r\n
Content-Type: text/xml; charset=utf-8\r\n
[truncated] Cookie: jive.recentHistory=312c3435373730393b;jive.user.loggedIn=true;AUID=atK8ce62e9p8yR%2BBmIRdxVhZn3w41YecIgpWVFUdxqOyhAs%2FlgIAAy6UuHKa0h5VxN%2FHQKHwAZO3%0AQ2lvoywUaQ%3D%3D;s_vi=[CS]v1|253A731085012678-4000010D400067F8[CE];
VsDebuggerCausalityData: uIDPo1bnV9JK4XxBro7uCYwvCqQAAAAARRQFA+GUfU6MawQh8oFAiRghaL/R8s1Cn/7Rx8eyeu4ACQAA\r\n
SOAPAction: ""\r\n
Host: forums.adobe.com\r\n
Content-Length: 342\r\n
Expect: 100-continue\r\n
Connection: Keep-Alive\r\n
\r\n
<s:Envelope>
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
<s:Body>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
<getAttachmentsByMessageID>
xmlns="http://jivesoftware.com/clearspace/webservices"
<messageID>
xmlns=""
2085697
</messageID>
</getAttachmentsByMessageID>
</s:Body>
</s:Envelope>
HTTP/1.1 200 OK\r\n
Date: Fri, 28 Aug 2009 08:45:02 GMT\r\n
SOAPAction: ""\r\n
Content-Type: text/xml;charset=UTF-8\r\n
Vary: Accept-Encoding,User-Agent\r\n
JP: D=86853 t=1251449102079095\r\n
Keep-Alive: timeout=5, max=100\r\n
Connection: Keep-Alive\r\n
Transfer-Encoding: chunked\r\n
Set-Cookie: BIGipServerPool_53_ENT2=756582666.22555.0000; path=/\r\n
\r\n
<soap:Envelope>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
<soap:Body>
<ns1:getAttachmentsByMessageIDResponse>
xmlns:ns1="http://jivesoftware.com/clearspace/webservices"
<return>
<ID>
12926
</ID>
<objectType>
13
</objectType>
<contentType>
image/jpeg
</contentType>
<data>
[truncated] <!-- buncha base64 stuff -->
</data>
<name>
imagerunready.jpg
</name>
</return>
</ns1:getAttachmentsByMessageIDResponse>
</soap:Body>
</soap:Envelope>
In the request headers there are a few fields thrown in there by Visual Studio/the WCF stack but they look mostly innocuous in this context. The reason I throught it was the cookies was that I kept getting varied results and adding more cookies until it finally worked. The cookies that I am sending in the request are
Hope that helps some...
I got this sorted out by rewriting from SOAP to REST.
Good to hear. I hope you are finding the REST API a bit more reliable. Also, you might be interested to know that I think that Adobe will be upgrading to a newer version of Clearspace in the near future. This should provide some additional stability on your end.
Brad Heller wrote on 9/18/2009 11:24 AM:
I hope you are finding the REST API a bit more reliable.
So far, yes. I am also under the impression they are marginally faster,
although the biggest speed increase seems to have occurred after the
several hour downtime due to overloaded RSS / search features. I have
had a four-fold speed increase on some requests after that.
Also, you might be interested to know that I think that Adobe will be upgrading to a newer version of Clearspace in the near future. This should provide some additional stability on your end.
I know, the request for documentation on the changes to the login system
(so I can implement them in my offline client) should already be on a
Jive desk somewhere.
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us