Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

xml attributes do not do type checking or enforcing #1

Open
adrienthebo opened this issue May 15, 2012 · 0 comments
Open

xml attributes do not do type checking or enforcing #1

adrienthebo opened this issue May 15, 2012 · 0 comments

Comments

@adrienthebo
Copy link
Owner

XML attributes do not ensure that sane values are used, so it's far too easy to pass in garbage values that will fail. Input validation should be done before an actual request is made.

@ghost ghost assigned adrienthebo May 15, 2012
adrienthebo pushed a commit that referenced this issue May 28, 2012
This adds an :access field to xmlattrs, so an attr can be readonly -
that is, it won't have an attr_writer method. In addition, the newly
added method does type enforcement and updates the resource state. So
finally, the status method for entries is actually meaningful!

This fixes (gprov #1) and (gprov #3).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant