astubenbord / paperless-mobile

An (almost) fully fledged mobile paperless client.
GNU General Public License v3.0
682 stars 36 forks source link

[Bug]: Anzeige von nur 25 Dokumenten #402

Open Eyma88 opened 6 months ago

Eyma88 commented 6 months ago

What happened?

Es werden etwa nur die ersten 25 PDF Dokumente angezeigt unter Dokumente. Screenshot_20240315-195854

Steps to reproduce

Es kommen keine Errors oder ähnliches. Es werden nur nicht alle Dokumente angezeigt ???

Log output from the app

2024-03-15 19:49:12.434 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-03-15 19:49:12.434 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-03-15 19:49:12.437 INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2024-03-15 19:49:14.866 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Identity successfully verified.
2024-03-15 19:49:14.866 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Reading encrypted credentials...
2024-03-15 19:49:15.173 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Credentials successfully retrieved.
2024-03-15 19:49:15.173 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Updating security context...
2024-03-15 19:49:15.173 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Security context successfully updated.
2024-03-15 19:49:15.197 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to update remote paperless user...
2024-03-15 19:49:15.197 DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Trying to fetch API version...
2024-03-15 19:49:15.220 WARNING --- [      AuthenticationCubit] - _getApiVersion           : The server is running a newer API version (4) than the app supports (v3), falling back to latest supported version (v3). Warning: This might lead to unexpected behavior!
2024-03-15 19:49:15.220 DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Successfully retrieved API version (3).
2024-03-15 19:49:15.220 DEBUG   --- [      AuthenticationCubit] - _updateRemoteUser        : Trying to update remote user object...
2024-03-15 19:49:15.278 DEBUG   --- [      AuthenticationCubit] - _updateRemoteUser        : Successfully updated remote user object.
2024-03-15 19:49:15.278 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Successfully updated remote paperless user.
2024-03-15 19:49:15.279 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Previous session successfully restored.
2024-03-15 19:49:15.300 DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2024-03-15 19:49:15.301 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2024-03-15 19:49:15.537 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2024-03-15 19:49:15.537 DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2024-03-15 19:49:15.551 DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2024-03-15 19:49:15.601 DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2024-03-15 19:54:38.209 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2024-03-15 19:54:38.320 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2024-03-15 19:55:08.211 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2024-03-15 19:55:08.360 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2024-03-15 20:21:51.637 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-03-15 20:21:51.637 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-03-15 20:21:51.642 INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2024-03-15 20:21:55.058 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Identity successfully verified.
2024-03-15 20:21:55.059 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Reading encrypted credentials...
2024-03-15 20:21:55.357 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Credentials successfully retrieved.
2024-03-15 20:21:55.358 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Updating security context...
2024-03-15 20:21:55.358 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Security context successfully updated.
2024-03-15 20:21:55.402 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to update remote paperless user...
2024-03-15 20:21:55.402 DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Trying to fetch API version...
2024-03-15 20:21:55.549 WARNING --- [      AuthenticationCubit] - _getApiVersion           : The server is running a newer API version (5) than the app supports (v3), falling back to latest supported version (v3). Warning: This might lead to unexpected behavior!
2024-03-15 20:21:55.550 DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Successfully retrieved API version (3).
2024-03-15 20:21:55.550 DEBUG   --- [      AuthenticationCubit] - _updateRemoteUser        : Trying to update remote user object...
2024-03-15 20:21:55.625 DEBUG   --- [      AuthenticationCubit] - _updateRemoteUser        : Successfully updated remote user object.
2024-03-15 20:21:55.625 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Successfully updated remote paperless user.
2024-03-15 20:21:55.626 DEBUG   --- [      AuthenticationCubit] - restoreSession           : Previous session successfully restored.
2024-03-15 20:21:55.640 DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2024-03-15 20:21:55.641 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2024-03-15 20:21:56.064 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2024-03-15 20:21:56.064 DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2024-03-15 20:21:56.065 DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2024-03-15 20:21:56.160 DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2024-03-15 20:25:11.129 DEBUG   --- [     DocumentScannerCubit] - initialize               : Restoring scans...
2024-03-15 20:25:11.152 DEBUG   --- [     DocumentScannerCubit] - initialize               : Restored 0 scans.
2024-03-15 20:25:35.049 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2024-03-15 20:25:35.198 INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.

Screenshots

Screenshot_20240315-195854

Paperless-ng*x Version

2.6.2

Paperless-Mobile Version

3.2.1+405

Device

Sony Xperia 5 V

Operating System Version

Android Version 14

Device Locale

Schweiz

Selected Locale

German

Additional Context

No response

sturmi commented 6 months ago

Ich habe dasselbe Problem. Aber nur, wenn ich einen Benutzer ohne Superuser-Berechtigungen benutze, selbst wenn ansonsten alle Berechtigungen gesetzt sind. Es tritt auf in der Ansicht Liste und Detailliert. Bei Raster werden alle Dokumente angezeigt. ohne_superuser

Wenn ich mich mit dem Admin-Account (Superuser-Rechte) einwähle, dann werden alle Dokumente korrekt angezeigt. superuser

Same problem but only when using user without superuser rights.

Eyma88 commented 6 months ago

Ich weiss jetzt nicht wie ich's gelöst bekommen habe, aber ich hab einfach alles Neu gestartet, in dieser Reihenfolge (Synology, Docker und zuletzt der Paperless Webdienst). Jetzt funktioniert die Anzeige aller Dokumente korrekt auf allen Geräten wieder.

astubenbord commented 5 months ago

Judging by the grey box (which usually indicates a rendering error, e.g. because of null check errors), seems like the document type could not be displayed correctly. This can happen e.g. when you create a new document type from outside the app and assign it to a document, then open the app again and reload only the document view. Then the app will not know about the new document type, but will assume that it is loaded (since the app always keeps all correspondents etc. in its local storage) and therefore a null check error will be thrown. This has already been reported but I cannot find the ticket.

An issue I see with the current state of the app is that a lot of state is kept local when it should not be. I'm working on a refactoring where the state is always fully loaded from the server. This will result in more network traffic but will also make development much less complex and faster.