Giter Site home page Giter Site logo

Comments (6)

OJ avatar OJ commented on July 28, 2024

I'd forgotten about this issue.

I'm not sure I agree. Why can't the user have their own custom content type? I'm pretty sure that nobody would, but surely this should be up to the dev?

from riak-dotnet-client.

peschkaj avatar peschkaj commented on July 28, 2024

I will dig into the source, but I'm pretty sure this is expected to be a valid MIME type.


Jeremiah Peschka
Founder, Brent Ozar Unlimited

On Nov 30, 2012, at 2:12 AM, OJ Reeves [email protected] wrote:

I'd forgotten about this issue.

I'm not sure I agree. Why can't the user have their own custom content type? I'm pretty sure that nobody would, but surely this should be up to the dev?


Reply to this email directly or view it on GitHub.

from riak-dotnet-client.

peschkaj avatar peschkaj commented on July 28, 2024

webmachine/mochikit is checking for valid HTTP content-type headers at some point in the Riak code base.

Since we can't viably lock out HTTP clients, it does serve our purposes to make sure a valid HTTP content type is set. Checking for supported MIME types is probably excessive for 1.0, but we can at least check for the presence of "/" to weed out clear failures of content types. See http://en.wikipedia.org/wiki/Internet_media_type for lulz.

from riak-dotnet-client.

OJ avatar OJ commented on July 28, 2024

That check would make sense for cases where things are being pushed in through HTTP, but does the PB interface do the same thing? If it's in webmachine/mochikit I can't see how that's enforced via PB.

Damn, now you've made me want to investigate :)

from riak-dotnet-client.

peschkaj avatar peschkaj commented on July 28, 2024

Well, you can't put invalid data in. If nothing else we should punt on this
and let the users decide.


Jeremiah Peschka
Founder, Brent Ozar Unlimited

On Fri, Nov 30, 2012 at 2:34 PM, OJ Reeves [email protected] wrote:

That check would make sense for cases where things are being pushed in
through HTTP, but does the PB interface do the same thing? If it's in
webmachine/mochikit I can't see how that's enforced via PB.

Damn, now you've made me want to investigate :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-10906770.

from riak-dotnet-client.

peschkaj avatar peschkaj commented on July 28, 2024

Confirmed with @seancribbs that this has to be a valid MIME type, but it does not have to be a registered MIME type. As such, it has to be of the format \w+(\w+)? Or, to the non-insane, TYPE with an optional SUB_TYPE. As far as we're concerned, it can't be null or an empty string. This is checked when calling SetObject.

from riak-dotnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.