locked
Disabling authentication breaks HttpPost RRS feed

  • Question

  • I'm using the Robotics Studio 2008 (CTP) and have run into an issue where disabling authentication (ie. setting false in the node's store/SecuritySettings.xml file) prevents the HttpPost message from working as expected.  I'm using HttpPost to configure a custom service (amongst other things) with the following code at the top of the handle to extract the POST data:

     

    Code Snippet

     

    Fault fault = null;

    NameValueCollection formData = null;

    ReadFormData readForm = new ReadFormData(httpPost.Body.Context);

    _httpUtilitiesPort.Post(readForm);

    yield return Arbiter.Choice(

    readForm.ResultPort,

    (success) => formData = success,

    (failure) =>

    {

    fault = Fault.FromException(failure);

    LogError(null, "Error processing form data", fault);

    }

    );

     

     

    This works as expected when authentication is enabled, it extracts the POST data key/value pairs into 'formData' which I then use to configure the service.  However with authentication disabled 'formData' is assigned an empty collection (the operation completes successfully, just with no data).  Digging deeper it turns out that httpPost.Body.Context.Request.InputStream is an instance of System.IO.Stream.NullStream.  If anyone want's to see the XSLT file I can post it, but it definately works when authentication is enabled.

     

    I've not tried this with MSRS 1.5, so I'm not sure if this is a bug with the CTP.  Is this behaviour deliberate, am I missing something blatently obvious, or should I be filing a bug report?

     

     

    Phil.
    Wednesday, June 11, 2008 8:24 AM

Answers

  • Well, I ended up needing to do a format (don't worry, the format wasn't because of this...) and now it seems to be working as expected with authentication disabled.  After a bit more digging I came across this, which looks like it may be the same issue I was having.

     

    So, I guess a good format *does* fix everything

    Friday, June 13, 2008 10:32 AM