Comments (6)
fyi @desperateCoder creating boards with
Board b = new Board();
b.setTitle(boardName);
syncManager.createBoard(account.getId(), b);
causes currently this exception:
2019-03-22 11:48:58.844 16513-16556/it.niedermann.nextcloud.deck E/AndroidRuntime: FATAL EXCEPTION: Thread-10
Process: it.niedermann.nextcloud.deck, PID: 16513
android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:796)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert(FrameworkSQLiteStatement.java:51)
at androidx.room.EntityInsertionAdapter.insertAndReturnId(EntityInsertionAdapter.java:114)
at it.niedermann.nextcloud.deck.persistence.sync.adapters.db.dao.BoardDao_Impl.insert(BoardDao_Impl.java:186)
at it.niedermann.nextcloud.deck.persistence.sync.adapters.db.dao.BoardDao_Impl.insert(BoardDao_Impl.java:32)
at it.niedermann.nextcloud.deck.persistence.sync.adapters.db.DataBaseAdapter.createBoardDirectly(DataBaseAdapter.java:252)
at it.niedermann.nextcloud.deck.persistence.sync.helpers.providers.BoardDataProvider.createInDB(BoardDataProvider.java:34)
at it.niedermann.nextcloud.deck.persistence.sync.helpers.providers.BoardDataProvider.createInDB(BoardDataProvider.java:15)
at it.niedermann.nextcloud.deck.persistence.sync.helpers.DataPropagationHelper.createEntity(DataPropagationHelper.java:22)
at it.niedermann.nextcloud.deck.persistence.sync.SyncManager.lambda$createBoard$1(SyncManager.java:163)
at it.niedermann.nextcloud.deck.persistence.sync.-$$Lambda$SyncManager$Ck_yhv6TIQA6kbdYHFxUQiT27R8.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:764)
2019-03-22 11:48:58.853 16513-16556/it.niedermann.nextcloud.deck I/Process: Sending signal. PID: 16513 SIG: 9
from nextcloud-deck.
The combination of Account ID and remote Id already exists. Do you set the remote Id? That would be a bad idea. Don't set any ID!
If this is not the case: what data exactly do you want to save? Post a json or stuff.
from nextcloud-deck.
Nice work 👍
from nextcloud-deck.
Iam not very happy with it, code-wise it's a bit dirty. But it works for now and we can refactor it at a later point...
from nextcloud-deck.
Sounds good, refactoring at a later time shouldn't be an issue :)
from nextcloud-deck.
Refactored in 7df89b4 4b40b78 7a8f475 7a8f475 476df50 b87d140 79aa5d9 80fffd4
from nextcloud-deck.
Related Issues (20)
- Feature Request: View videos HOT 2
- Pick existing files in your Nextcloud to "upload" as a new attachment HOT 3
- Purchased app, but will not connect HOT 3
- Card attachments do not open with the app due to incorrect links generated HOT 2
- Filenames are not shown for jpg attachments HOT 4
- Feature Request: Add shortcut buttons for today and tomorrow
- Added ability to mark a card as done HOT 1
- Synchronize with one request HOT 1
- Show card description icon always if description is present HOT 2
- Board sort order of Lists HOT 2
- Renaming and order of lists not synced via ETags option HOT 3
- Nextcloud Deck App HOT 1
- "Upcoming cards" view not being remembered upon reopening app
- Leap year issue HOT 1
- Add new card to top or bottom of a list HOT 2
- Boards not sorted anymore after update; app crashing upon non-ETag sync
- Can not connect to nextcloud app account HOT 9
- Full crash when opening the app
- Add a photo via gallery not possible HOT 2
- App crashes when server is in maintenance mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloud-deck.