[ http://issues.apache.org/jira/browse/MUSE-73?page=all ]
Dan Jemiolo closed MUSE-73.
---------------------------
Fix Version/s: 2.0.0
Resolution: Invalid
> The Metadata implementation allows read-only properties to be deleted
> ---------------------------------------------------------------------
>
> Key: MUSE-73
> URL: http://issues.apache.org/jira/browse/MUSE-73
> Project: Muse
> Issue Type: Bug
> Components: WSRF WSRMD ResourceMetadataCapability and
> MetadataResource
> Affects Versions: 2.0.0 M2
> Environment: any
> Reporter: Mohammad Fakhar
> Assigned To: Dan Jemiolo
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: rmdpatch
>
>
> The SimpleMetadataDescriptor implementation returns true for canDelete even
> if a property's modifiability has been
> set to read-only.
> public boolean canDelete(QName propertyQName)
> {
> //
> // deletion requires mutability (AND isReadOnlyExternal() == false)
> //
> PropertyMetadata property = getProperty(propertyQName);
>
> return property.getMutability() == PropertyMetadata.MUTABLE;
> }
> As show above, only mutability is being checked for, not modifiability, as a
> result deletion
> of read-only properties is allowed.
> Attached is a patch that fixes this by also checking for modifiability.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]