Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a "Workspace" in the "Explore" view #210

Closed
rguignard opened this issue Sep 6, 2019 · 0 comments
Closed

Unable to create a "Workspace" in the "Explore" view #210

rguignard opened this issue Sep 6, 2019 · 0 comments
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Milestone

Comments

@rguignard
Copy link

Description

An error occurrs when creating a new "workspace".
Apparently, the backend is waiting for a 'workspace_type' value that are not possible to define in the 'Create a workspace' view

Environment

OpenCTI version: 1.1.2

Reproducible Steps

Try to create a new workspace

Expected Output

Actual Output


opencti_create_workspace_bug

Additional information

Error logs:

opencti_1            | error: Variable "$input" got invalid value { name: "My Workspace", description: "Description of my workspace", markingDefinitions: ["99348c15-03f5-4586-9d09-4ca67f432cad"] }; Field value.workspace_type of required type String! was not provided. {"locations":[{"line":2,"column":3}],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["GraphQLError: Variable \"$input\" got invalid value { name: \"My Workspace\", description: \"Description of my workspace\", markingDefinitions: [\"99348c15-03f5-4586-9d09-4ca67f432cad\"] }; Field value.workspace_type of required type String! was not provided.","    at coercionError (/opt/opencti/node_modules/graphql/utilities/coerceValue.js:210:10)","    at coerceValue (/opt/opencti/node_modules/graphql/utilities/coerceValue.js:128:36)","    at coerceValue (/opt/opencti/node_modules/graphql/utilities/coerceValue.js:42:12)","    at getVariableValues (/opt/opencti/node_modules/graphql/execution/values.js:76:54)","    at buildExecutionContext (/opt/opencti/node_modules/graphql/execution/execute.js:213:63)","    at executeImpl (/opt/opencti/node_modules/graphql/execution/execute.js:87:20)","    at Object.execute (/opt/opencti/node_modules/graphql/execution/execute.js:62:35)","    at /opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:239:46","    at Generator.next (<anonymous>)","    at /opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:7:71","    at new Promise (<anonymous>)","    at __awaiter (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:3:12)","    at execute (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:218:20)","    at Object.<anonymous> (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:156:42)","    at Generator.next (<anonymous>)","    at fulfilled (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:4:58)"]}}}
@SamuelHassine SamuelHassine added the bug use for describing something not working as expected label Sep 6, 2019
@SamuelHassine SamuelHassine self-assigned this Sep 6, 2019
@SamuelHassine SamuelHassine added this to the Release 1.2.0 milestone Sep 6, 2019
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

No branches or pull requests

2 participants