Return to Jive Software

Skip navigation
6,051 Views 17 Replies Last post: Sep 18, 2009 10:45 AM by jochemd RSS
jochemd Beginner 250 posts since
May 6, 2009
Currently Being Moderated

Jul 6, 2009 11:34 AM

Bug in ForumService.getAttachmentsByMessageID()

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?

Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Jul 13, 2009 1:43 PM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Aug 3, 2009 2:24 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Aug 17, 2009 9:06 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Aug 18, 2009 7:18 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

DorothyK Novice 1 posts since
Feb 11, 2009
Currently Being Moderated
Aug 26, 2009 12:49 PM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()
To say nothing of the fact that he is doing it on behalf of a customer you have an assumably very large contract with... and he's trying really hard to help you improve your service for all your customers, contract or not. Really, how hard do you folks need to smacked upside the head before you realize the potential you are being offered here??
Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Aug 27, 2009 2:58 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

Attachments:
Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Aug 28, 2009 2:00 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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

 

  1. jive.server.info
  2. JSESSIONID
  3. AUID
  4. s_vi
  5. jive.user.loggedIn
  6. WCDServer
  7. jive.recentHistory

 

Hope that helps some...

Expert 3,517 posts since
Jun 18, 2009
Currently Being Moderated
Sep 18, 2009 2:23 AM in response to: Jochem van Dieten
Re: Bug in ForumService.getAttachmentsByMessageID()

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.

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.