Open neerro opened 2 years ago
Hello @neerro
I am pretty sure that this is a duplicate of #1175, though it would be helpful if you could provide more information about what exactly you are doing.
I did all necessary steps according Deck algorithm for uploading photo as attach. I belive there is no another capabilities to do it by another way.
Do you pick the photo from the built in photo activity (1), from the preview (2) or from picking files (3)?
From the preview. The second one.
At the first look I thought the issue was caused by the Deck Android App due to a bit of a missleading error message (on our side).
Though there is this section in the error message
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden
which shows us, that picking the image actually worked as it should, but while sending it to your Deck server, your server responded with HTTP status code 403
: forbidden
.
So, the question is, why does your server not allow an upload?
Could it be that the attachment (photo) size was bigger than 2MB. I've noticed that when I add a big attachment in Dec web app, the app refuses and gives an error message. But the android app crashed and then failed to sync.
Hi I also experience a crash when selecting an attachment, however the issue doesn't seem to be network related - rather an issue with the client.
Im using the gallery to pick the attachment, and the following happens a few seconds after:
Full Crash:
App Version: 1.23.3
App Version Code: 1023003
App Flavor: fdroid
Files App Version Code: 30250090 (PROD)
---
OS Version: 5.4.242-qgki-gafa23b20dc17(cd7b134956)
OS API Level: 33
Device: OnePlus9Pro
Manufacturer: OnePlus
Model (and Product): LE2123 (OnePlus9Pro)
---
java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed(RequestManagerRetriever.java:366)
at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:154)
at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:134)
at com.bumptech.glide.Glide.with(Glide.java:540)
at it.niedermann.nextcloud.deck.ui.card.attachments.picker.GalleryItemViewHolder.bind(GalleryItemViewHolder.java:30)
at it.niedermann.nextcloud.deck.ui.card.attachments.picker.GalleryAdapter.lambda$onBindViewHolder$0$it-niedermann-nextcloud-deck-ui-card-attachments-picker-GalleryAdapter(GalleryAdapter.java:84)
at it.niedermann.nextcloud.deck.ui.card.attachments.picker.GalleryAdapter$$ExternalSyntheticLambda0.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Installed on lineage os.
Edit: I does sync succesfully to my nextcloud server, and can indeed see it on the web interface.
@Sveske-Juice would you mind moving your stacktrace to a separate issue? It is unrelated to the original post but a valod bug that can and should be adressed. I assume it's quitr easy to fix compared to the original issue, so let's track it separately.
Describe the bug When I try to attached any photo to new created card and save progress the error suddenly has appear. It happens every time when I tried to repeate this action. When card was created I could fulfill all necessary text information then save it and sync with instance without any obstacles. Stacktrace is attached below.
Steps to reproduce the behavior: I did all necessary steps according Deck algorithm for uploading photo as attach. I belive there is no another capabilities to do it by another way.
Expected behavior In the conclusion of this action I wanna observe attached and synchronized photos.
Screenshots I would try to provide the video of this issue if it will be necessary.
Versions
Smartphone (please complete the following information):
Stacktrace