Issue Details (XML | Word | Printable)

Key: CMIS-115
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Ethan Gur-esh
Reporter: Ethan Gur-esh
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OASIS Content Management Interoperability Services (CMIS) TC

Make use of "OperationNotSupported" vs. "ConstraintViolationException" more consistent

Created: 06/Mar/09 04:03 PM   Updated: 11/Jan/10 06:45 PM
Component/s: Domain Model
Affects Version/s: Draft 0.50
Fix Version/s: Draft 0.62

Proposal:
We should change delete attempts on the root folder and checkIn to throw "ConstraintViolationException" in those cases.


This would make OperationNotSupportedException specific to optional capabilities, and constraintViolation specific to constraints of the CMIS domain model.
Resolution: Proposal accepted.


 Description  « Hide
Currently in the CMIS spec, we're a bit inconsistent about when to use "OperationNotSupportedException" vs. "ConstraintViolationException".

For example:
We said in the spec that OperationNotSupportedException is supposed to be about optional capabilities, and we usually use it that way... but we also throw it when:
- You try to check in an object that is not checked out.
- You try to delete the root folder.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Al Brown added a comment - 04/May/09 12:47 PM
Accepted by TC

Ethan Gur-esh added a comment - 19/May/09 01:30 PM
It's now consistent throughout part I.

Al Brown added a comment - 05/Jan/10 12:27 AM
JIRA Cleanup