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

File Sharing API seems to break whole app in Nextcloud 29.0.2 #200

Closed
pbek opened this issue Jun 18, 2024 · 7 comments
Closed

File Sharing API seems to break whole app in Nextcloud 29.0.2 #200

pbek opened this issue Jun 18, 2024 · 7 comments
Assignees
Milestone

Comments

@pbek
Copy link
Member

pbek commented Jun 18, 2024

@aleixq

With Nextcloud 29.0.2 the PHP API in the Nextcloud server got breaking changes that seems to break the whole app via ShareAPIController::createShare.

nextcloud/server@5dbb96f

When using WebAppPassword for creating temporary app passwords, this causes:

{
    "reqId": "MeFUfsLGC1ozQWskec9c",
    "level": 3,
    "time": "June 18, 2024 11:13:39",
    "remoteAddr": "10.13.128.116",
    "user": "--",
    "app": "PHP",
    "method": "GET",
    "url": "/index.php/apps/webapppassword?target-origin=https%3A%2F%2Fdbp-dev.tugraz.at%2Fapps%2Fsignature%2Fde%2Fqualified-pdf-upload",
    "message": "Declaration of OCA\\WebAppPassword\\Controller\\ShareAPIController::createShare(?string $path = null, ?int $permissions = null, int $shareType = -1, ?string $shareWith = null, string $publicUpload = 'false', string $password = '', ?string $sendPasswordByTalk = null, string $expireDate = '', string $note = '', string $label = '', ?string $attributes = null): OCP\\AppFramework\\Http\\DataResponse must be compatible with OCA\\Files_Sharing\\Controller\\ShareAPIController::createShare(?string $path = null, ?int $permissions = null, int $shareType = -1, ?string $shareWith = null, string $publicUpload = 'false', string $password = '', ?string $sendPasswordByTalk = null, ?string $expireDate = null, string $note = '', string $label = '', ?string $attributes = null): OCP\\AppFramework\\Http\\DataResponse at /home/nc/pers/apps/webapppassword/lib/Controller/ShareAPIController.php#34",
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
    "version": "29.0.2.2",
    "data": {
        "app": "PHP"
    }
}
@pbek
Copy link
Member Author

pbek commented Jun 18, 2024

There are backports of those breaking changes in Nextcloud Server to 28 and below too...

I'll try to introduce a workaround hat might work in 29.0.1 and 29.0.2 and probably also in Nextcloud 28.

pbek added a commit that referenced this issue Jun 18, 2024
Signed-off-by: Patrizio Bekerle <[email protected]>
pbek added a commit that referenced this issue Jun 18, 2024
pbek added a commit that referenced this issue Jun 18, 2024
Signed-off-by: Patrizio Bekerle <[email protected]>
@pbek pbek self-assigned this Jun 18, 2024
pbek added a commit that referenced this issue Jun 18, 2024
Signed-off-by: Patrizio Bekerle <[email protected]>
@pbek
Copy link
Member Author

pbek commented Jun 18, 2024

24.6.0

  • Fixed breaking change introduced in Nextcloud 29.0.2

@pbek pbek added this to the 24.6.0 milestone Jun 18, 2024
@aleixq
Copy link
Contributor

aleixq commented Jun 18, 2024

OMG! I'm late, So it's solved now?

@pbek
Copy link
Member Author

pbek commented Jun 18, 2024

For this issue, we created a workaround, but I don't know if the sharing API works at all now after the changes in Nextcloud 29.0.2. And #197 is also still open... 😉

@pbek
Copy link
Member Author

pbek commented Jun 19, 2024

@aleixq, @lazka
There now is a new release, could you please test it and report if it works for you?

@lazka
Copy link
Member

lazka commented Jun 19, 2024

I can confirm that the new release fixes the app in general, no idea about file shares.

@pbek
Copy link
Member Author

pbek commented Jun 19, 2024

Thank you for testing.

@pbek pbek closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants