-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.4.6, 5.12.1
-
1
-
Severity 3 - Minor
-
1
-
Issue Summary
Importing Object Schema ends up in error and does not import any objects
This is reproducible on Data Center: yes
Steps to Reproduce
- Create and Object Schema export (zip file)
- Import the Schema zip file on another instance
Expected Results
The Schema gets imported without any problems.
Actual Results
The import process finishes in erroneous state and does not import any objects.
The below exception is thrown in thei nsight_objectschema_import.log file:
2023-11-21 11:37:04,913+0000 insight-InsightThreadGroup-worker-thread-15 ERROR lipkase 696x811974x1 ig6upg 77.10.1.157,10.4.6.199,10.3.19.10 /rest/insight/1.0/objectschemaimport/import/server [c.r.j.p.i.s.imports.schema.ObjectSchemaImportServiceImpl] Failed to read from jira-configuration.xml from dir: /opt/atlassian/jira/temp/insight_import1049541240897247450 java.io.FileNotFoundException: /opt/atlassian/jira/temp/insight_import1049541240897247450/jira-configuration.xml (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.readImportJIRAConfigurationXml(ObjectSchemaImportServiceImpl.java:1215) at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.importObjectSchemaWithObjects(ObjectSchemaImportServiceImpl.java:438) at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.lambda$importObjectSchemaDefinition$0(ObjectSchemaImportServiceImpl.java:302) at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
followed by
2023-11-21 11:37:04,913 [insight-InsightThreadGroup-worker-thread-15] | Error when importing object schema and objects, object schema id: 8 java.lang.NullPointerException at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.importObjects(ObjectSchemaImportServiceImpl.java:1362) at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.importObjectSchemaWithObjects(ObjectSchemaImportServiceImpl.java:443) at com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaImportServiceImpl.lambda$importObjectSchemaDefinition$0(ObjectSchemaImportServiceImpl.java:302) at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
Workaround
Try to recreate a new zip file (make sure it is without a password) - example:
- On Jira server, extract the files from the zip file
- Add the files to a new zip archive without any password
- Try re-importing the file
If workaround above does not work, you can:
- Use the REST API method to import the schema.
- Use Object schema import type to import the data from the source Jira instance directly.
- links to