Skip to content

async function isRepositoryVersioned() maybe wrong #67

Closed
@waldpark

Description

@waldpark

The function

async function isRepositoryVersioned(repoInfo, repositoryId) {
  let repoType = repoInfo.data[repositoryId].capabilities["capabilityContentStreamUpdatability"]
  if (repoType === "pwconly") {
    repoType = "versioned";
  } else {
    repoType = "non-versioned";
  }
  saveRepoToCache(repositoryId, repoType);
  return repoType === "versioned" ? true : false;
}

checks the attribute capabilityContentStreamUpdatability for the value pwconly instead of the value anytime.
I think this is a bug.

Please have a look at the documentation

http://docs.oasis-open.org/cmis/CMIS/v1.0/cd04/cmis-spec-v1.0.pdf

lines 74-80

Can you please provide a fix asap?

Thanks and best regards
Adrian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions