chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harald Guttner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-359) date properties cannot be set with Alfresco (
Date Tue, 19 Apr 2011 07:23:05 GMT
date properties cannot be set with Alfresco (
---------------------------------------------

                 Key: CMIS-359
                 URL: https://issues.apache.org/jira/browse/CMIS-359
             Project: Chemistry
          Issue Type: Bug
          Components: dotcmis
    Affects Versions: OpenCMIS 0.3.0
         Environment: DotCMIS + Alfresco Repository (Community) 3.4.0 (c 3335)
            Reporter: Harald Guttner
            Priority: Minor


setting properties like this (custom definied content model):

properties["grz:rechnungsdatum"] = new DateTime(2011, 1, 31, 1, 1, 1);

I get an interal server error. Without this property it works. Seems to be a parsing problem
of date properties (see http://svn.apache.org/repos/asf/chemistry/abdera-ext/trunk/src/main/java/org/apache/chemistry/abdera/ext/utils/ISO8601DateFormat.java)

Errorstack (Alfresco logfile):

Caused by: org.alfresco.scripts.ScriptException: 03190004 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js':
Failed to parse date 2011-01-31T01:01:01
	at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)
	at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282)
	at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
	at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981)
	at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
	... 24 more
Caused by: java.lang.RuntimeException: Failed to parse date 2011-01-31T01:01:01
	at org.apache.chemistry.abdera.ext.utils.ISO8601DateFormat.parse(ISO8601DateFormat.java:146)
	at org.apache.chemistry.abdera.ext.CMISValue.getDateValue(CMISValue.java:117)
	at org.apache.chemistry.abdera.ext.CMISValue.getNativeValue(CMISValue.java:64)
	at org.apache.chemistry.abdera.ext.CMISProperty.getNativeValue(CMISProperty.java:131)
	at sun.reflect.GeneratedMethodAccessor544.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
	at org.mozilla.javascript.JavaMembers.get(JavaMembers.java:117)
	at org.mozilla.javascript.NativeJavaObject.get(NativeJavaObject.java:113)
	at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1544)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1375)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1364)
	at org.mozilla.javascript.gen.c5._c7(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:365)
	at org.mozilla.javascript.gen.c5.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
	at org.mozilla.javascript.gen.c5._c6(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:190)
	at org.mozilla.javascript.gen.c5.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
	at org.mozilla.javascript.gen.c5._c4(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:144)
	at org.mozilla.javascript.gen.c5.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
	at org.mozilla.javascript.gen.c5._c0(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:550)
	at org.mozilla.javascript.gen.c5.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
	at org.mozilla.javascript.gen.c5.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.mozilla.javascript.gen.c5.exec(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js)
	at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
	at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)
	... 28 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 19
	at java.lang.String.charAt(String.java:686)
	at org.apache.chemistry.abdera.ext.utils.ISO8601DateFormat.parse(ISO8601DateFormat.java:111)
	... 57 more


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message