Comments (6)
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.
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.
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.
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.
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.
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)
- Issue with health check / node selection HOT 2
- No results found yields IsSuccess == false HOT 1
- Compiling under Mono breaks stuff HOT 1
- Default value for deletedvclock
- RiakClient.Delete Bug HOT 5
- Riak TS support
- Nodes are not marked Offline for a failed GET request HOT 10
- Riak client does not support the use of a load balancer HOT 14
- The "externalLoadBalancer" doesn't take multiple-load balancer scenarios into account HOT 2
- RiakClient.Delete issue [JIRA: CLIENTS-898] HOT 3
- Don't lose original error when returning "ClusterOffline"
- Update riak_pb submodule when tagged
- Optional fields with default values in PB messages
- Upon save/update failure - no way to get Id
- Target .NET Standard
- Revamp publish process
- Riak TS - when rpberrorresp is returned, text is unavailable HOT 1
- Fluent connection configuration ? HOT 2
- System.configuration could not be resolved HOT 1
- Add warning and safety mechanism to prevent unintentional list [buckets | keys] operations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riak-dotnet-client.