[
https://jira.nuxeo.com/browse/CMIS-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stéfane Fermigier updated CMIS-53:
----------------------------------
Description:
Use this python script to reproduce the issue:
{code}
import time
from StringIO import StringIO
from cmislib.model import CmisClient
REPOSITORY_URL = "http://localhost:8080/nuxeo/atom/cmis"
REMOTE_PATH = "/default-domain/workspaces/test"
USERNAME = PASSWORD = "Administrator"
client = CmisClient(REPOSITORY_URL, USERNAME, PASSWORD)
repo = client.getDefaultRepository()
folder = repo.getObjectByPath(REMOTE_PATH)
while True:
name = "test-%f.txt" % time.time()
content = "Some random content"
content_file = StringIO(content)
folder.createDocument(name, contentFile=content_file)
doc = repo.getObjectByPath(REMOTE_PATH + "/" + name)
assert content == doc.getContentStream().read()
doc.delete()
{code}
was:
Use this python script to reproduce the issue:
import time
from StringIO import StringIO
from cmislib.model import CmisClient
REPOSITORY_URL = "http://localhost:8080/nuxeo/atom/cmis"
REMOTE_PATH = "/default-domain/workspaces/test"
USERNAME = PASSWORD = "Administrator"
{code}
client = CmisClient(REPOSITORY_URL, USERNAME, PASSWORD)
repo = client.getDefaultRepository()
folder = repo.getObjectByPath(REMOTE_PATH)
while True:
name = "test-%f.txt" % time.time()
content = "Some random content"
content_file = StringIO(content)
folder.createDocument(name, contentFile=content_file)
doc = repo.getObjectByPath(REMOTE_PATH + "/" + name)
assert content == doc.getContentStream().read()
doc.delete()
{code}
Summary: Can't create documents with long names (> 24 chars) (was: Can
create documents with long names (> 24 chars))
> Can't create documents with long names (> 24 chars)
> ---------------------------------------------------
>
> Key: CMIS-53
> URL: https://jira.nuxeo.com/browse/CMIS-53
> Project: Nuxeo Chemistry
> Issue Type: Bug
> Affects Versions: nuxeo-5.4.2
> Reporter: Stéfane Fermigier
> Assignee: Florent Guillaume
>
> Use this python script to reproduce the issue:
> {code}
> import time
> from StringIO import StringIO
> from cmislib.model import CmisClient
> REPOSITORY_URL = "http://localhost:8080/nuxeo/atom/cmis"
> REMOTE_PATH = "/default-domain/workspaces/test"
> USERNAME = PASSWORD = "Administrator"
> client = CmisClient(REPOSITORY_URL, USERNAME, PASSWORD)
> repo = client.getDefaultRepository()
> folder = repo.getObjectByPath(REMOTE_PATH)
> while True:
> name = "test-%f.txt" % time.time()
> content = "Some random content"
> content_file = StringIO(content)
> folder.createDocument(name, contentFile=content_file)
> doc = repo.getObjectByPath(REMOTE_PATH + "/" + name)
> assert content == doc.getContentStream().read()
> doc.delete()
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets