-
Bug
-
Resolution: Fixed
-
Medium
-
8.5.7, 8.5.9, 8.5.11, 8.9.3, 8.5.12, 8.5.14, 8.5.17, 8.9.8
-
19
-
Severity 3 - Minor
-
27
-
Problem
Confluence cannot save a page when copying data from a Jira "Date and Time Picker" field / Jira issue search and pasting it into a Confluence page.
The following error is observed in the atlassian-confluence.log file:
atlassian-confluence.log
2024-06-28 14:38:09,296 WARN [http-nio-6854-exec-4 url: /rest/api/content/6946819; user: admin] [content.render.xhtml.DefaultFormatConverter] validateAndConvertToStorageFormat XhtmlException converting editor format to storage format. Turn on debug level logging to see editor format data. -- url: /rest/api/content/6946819 | userName: admin | referer: http://localhost:8090/pages/resumedraft.action?draftId=6946820&draftShareId=9abf3a3c-8323-47b4-be2f-5353a9dd14dc& | traceId: e03e488be556b684 com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred due to invalid date time format during unmarshalling a time from storage format.) at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.lambda$transform$0(EditorXhtmlTransformer.java:58) at com.atlassian.confluence.content.render.xhtml.StaxUtils.processWrappedWstxExceptionOrTrowMapped(StaxUtils.java:470) at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:58) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:42) at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:37) at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertToStorageFormat(DefaultFormatConverter.java:123) at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.validateAndConvertToStorageFormat(DefaultFormatConverter.java:73) at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionManagerImpl.computeConvertedValue(ContentBodyConversionManagerImpl.java:163) [...] Caused by: java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred due to invalid date time format during unmarshalling a time from storage format. at com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError.handle(ThrowExceptionOnFragmentTransformationError.java:14) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:157) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123) at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:45) ... 430 more Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred due to invalid date time format during unmarshalling a time from storage format. at com.atlassian.confluence.content.render.xhtml.editor.time.EditorTimeUnmarshaller.unmarshal(EditorTimeUnmarshaller.java:32) at com.atlassian.confluence.content.render.xhtml.editor.time.EditorTimeUnmarshaller.unmarshal(EditorTimeUnmarshaller.java:19) at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:28) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:141) ... 432 more Caused by: java.lang.IllegalArgumentException: Invalid format: "2024-02-20T09:30:18+1100" is malformed at "T09:30:18+1100" at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:953) at com.atlassian.confluence.content.render.xhtml.model.time.Time.parseDate(Time.java:66) at com.atlassian.confluence.content.render.xhtml.model.time.Time.<init>(Time.java:26) at com.atlassian.confluence.content.render.xhtml.editor.time.EditorTimeUnmarshaller.unmarshal(EditorTimeUnmarshaller.java:28) ... 435 more
Environment
.
Steps to Reproduce
- Copy a date from a Jira "Date and Time Picker" field and paste it into a Confluence page
- Copy a date from the Jira search screen, and paste it into a Confluence page
Expected Results
The date is pasted into the page, and the page can be successfully saved and published
Actual Results
The page cannot be saved/edit, with the below error presented in the UI:
![]()
Unable to save the draft page with an error occurred due to invalid date time format during unmarshalling a time from storage format.)
Workaround
Manually selecting the dates using the Confluence date picker: