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

Edits are not Saving #1716

Closed
nacron opened this issue Nov 19, 2021 · 3 comments
Closed

Edits are not Saving #1716

nacron opened this issue Nov 19, 2021 · 3 comments

Comments

@nacron
Copy link

nacron commented Nov 19, 2021

I installed the software with the provided kubernetes files in distro.
After figuring out the changes I needed to make to my ingress so the websockets are working thanks to this PR (https://github.com/Apicurio/apicurio-studio/pull/1185/files).
Now I am back to square one. I have an old database which I restored. Everything is showing but I cannot edit a thing. I tried if the db user has no writing rights but I can update stuff in the databse with the database user. The WS and API pod both have the correct database credentials. I don't get any errors in the log to go off. I set the log level to debug.
Here is the output when I add a new property:

WS Pod

2021-11-19 15:42:21,848 DEBUG [io.apicurio.hub.core.editing.ops.processors.OperationProcessorDispatcher] (default task-1) Received a "command" message/operation from a client for API Design: 49
2021-11-19 15:42:21,848 DEBUG [io.apicurio.hub.core.editing.ops.processors.CommandProcessor] (default task-1)   user: benedikt.koch@time-matters.com
2021-11-19 15:42:21,848 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-1) Inserting a 'command' content row for: 49
2021-11-19 15:42:21,848 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (default task-1) ApicurioDS: getConnection(null, WrappedConnectionRequestInfo@61c6b65f[userName=apimanagement@tm-prd-psql-api-management-01]) [0/20]

2021-11-19 15:42:21,859 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (default task-1) ApicurioDS: returnConnection(4a9b6cf2, false) [0/20]
2021-11-19 15:42:21,860 DEBUG [io.apicurio.hub.core.editing.ops.processors.CommandProcessor] (default task-1) ACK sent back to client.
2021-11-19 15:42:21,860 DEBUG [io.apicurio.hub.core.editing.ops.processors.CommandProcessor] (default task-1) Command propagated to 'other' clients.
2021-11-19 15:42:21,894 DEBUG [io.undertow.websockets.core.request] (default I/O-2) UT025003: Decoding WebSocket Frame with opCode 1
2021-11-19 15:42:21,895 DEBUG [io.apicurio.hub.core.editing.ops.processors.OperationProcessorDispatcher] (default task-1) Received a "selection" message/operation from a client for API Design: 49
2021-11-19 15:42:21,895 DEBUG [io.apicurio.hub.core.editing.ops.processors.SelectionProcessor] (default task-1)         user:benedikt.koch@time-matters.com
2021-11-19 15:42:21,895 DEBUG [io.apicurio.hub.core.editing.ops.processors.SelectionProcessor] (default task-1)         selection:/components/schemas[OrderResponse]/properties[test]
2021-11-19 15:42:21,895 DEBUG [io.apicurio.hub.core.editing.ops.processors.SelectionProcessor] (default task-1) User selection propagated to 'other' clients.
2021-11-19 15:42:35,916 DEBUG [io.undertow.websockets.core.request] (default I/O-2) UT025003: Decoding WebSocket Frame with opCode 1
2021-11-19 15:42:35,917 DEBUG [io.apicurio.hub.core.editing.ops.processors.OperationProcessorDispatcher] (default task-1) Received a "ping" message/operation from a client for API Design: 4

Frontend:

main-es2015.4eeab743bb602c8953d1.js:1 [ValidationProblemComponent] Invalidating cache.
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditorComponent] Node selection detected (from the selection service)
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditorComponent] Selection changed to path: /components/schemas[OrderResponse]/properties[test]
editor:1 Form submission canceled because the form is not connected
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditingSession] Message received from server. '{"type":"ack","contentVersion":50,"commandId":1637336541818,"ackType":"command"}'
main-es2015.4eeab743bb602c8953d1.js:1                     Message type: ack
main-es2015.4eeab743bb602c8953d1.js:1                     Command Id: 1637336541818
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditorPageComponent] Finalizing command with local id: 1637336541818
main-es2015.4eeab743bb602c8953d1.js:1 [OtEngine] Finalizing command with contentId: 1637336541818  and new contentVersion: 50
main-es2015.4eeab743bb602c8953d1.js:1 [OtEngine] Pending command is 'next up', performing simple shift from pending to finalized.
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditorPageComponent] Cancelling the auto-retry timer.
main-es2015.4eeab743bb602c8953d1.js:1 [ApiEditingSession] Sending PING.

I have to say I am pretty frustrated :( I had the same problem with the standalone version then I thought I maybe update to a newer version and going through the pain and changing the whole deployment method. And still the same error. Cannot edit a thing. No error message... nothing.

Also I see an error from the main-es2015 directly on startup (browser console):
Error: <filter> attribute width: Unexpected end of attribute. Expected length, "".

@nacron nacron closed this as completed Nov 19, 2021
@nacron
Copy link
Author

nacron commented Nov 19, 2021

I just found out that we didn't transfer the value of the sequences in the backup .......

@EricWittmann
Copy link
Member

There is still a bug here though - if you didn't bring over the sequences as part of the backup you should see some kind of error logged I would think. I'll add a separate issue to track that. Thanks for reporting and indicating what the issue was.

@nacron
Copy link
Author

nacron commented Nov 22, 2021

Well to be clear we brought over the sequences but they started at 0... Especially the api_content_version_seq is really important (that one has killed the editing).

Thanks a lot for the support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants