You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Stephan Klevenz (JIRA)" <ji...@apache.org> on 2010/06/17 14:59:25 UTC

[jira] Updated: (CMIS-220) Name property disappears after update of other properties.

     [ https://issues.apache.org/jira/browse/CMIS-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephan Klevenz updated CMIS-220:
---------------------------------

    Environment:     (was:     @Test
    public void updateSinglePropertyAndCheckName() {
        // verify content
        String path = "/" + Fixture.TEST_ROOT_FOLDER_NAME + "/" + FixtureData.DOCUMENT1_NAME;
        Document document = (Document) this.session.getObjectByPath(path);
        assertNotNull("Document not found: " + path, document);

        String lastModifiedBy = UUID.randomUUID().toString();
        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put(PropertyIds.LAST_MODIFIED_BY, lastModifiedBy);

        String id = document.getId();
        assertNotNull(id);

        // update single property
        ObjectId newId = document.updateProperties(properties);
        assertNotNull(newId);
        assertEquals(id, newId.getId());  // should not be a new version
        
        // verify
        assertEquals(lastModifiedBy, document.getLastModifiedBy());
        assertEquals(FixtureData.DOCUMENT1_NAME, document.getName());
    }
)

> Name property disappears after update of other properties.
> ----------------------------------------------------------
>
>                 Key: CMIS-220
>                 URL: https://issues.apache.org/jira/browse/CMIS-220
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: opencmis-0.1.0-incubating
>            Reporter: Stephan Klevenz
>             Fix For: opencmis-0.1.1-incubating
>
>
> After updating a single property, e.g. lastModifiedBy, the name property value of the document disappeared. 
> A test is provided here:
> AbstractWriteObjectIT.updateSinglePropertyAndCheckName
> currently annotated with @Ignore.
> Regards,
> Stephan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.