Skip to content

Sharing broken with Airsonic? #978

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

Open
Faeb35 opened this issue Jan 12, 2020 · 1 comment
Open

Sharing broken with Airsonic? #978

Faeb35 opened this issue Jan 12, 2020 · 1 comment

Comments

@Faeb35
Copy link

Faeb35 commented Jan 12, 2020

Hi there,

I'm using the newest version of Dsub and Airsonic. When I try to share an album from DSub, I get a link like the one below.
http://host.com/share/yWOuL
Following this link only brings up a 404 error.

When I share the same album using the official subsonic app, I get a link like the one bellow. This one is working.
http://host.com/ext/share/UjOlk?jwt=eyJ0eXAiOiJKV1QiLCJurGciOiJIUzI1NiJ9.eyJwYXRkewoiL2V4dC9zaGFyZS9VVU9sayIsImV4cCI6MTYxMDQ2MzA1Mn0.s3McUFS7HOjfv78t_V4xWhMGdhLbqL8wF_82ixqGBt8

Is there anything I can do to get the full link from DSub? Is it a bug?

All the best,

Faeb35

@mwielgosz
Copy link

I can replicate the same issue, except one difference.

Mobile app creates link: https://host.com/share/SNBYE
Share link via browser: https://host.com/ext/share/SNBYE?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhbm9ueW1vdXMiLCJwYXRoIjoiZXh0L3NoYXJlL1NOQllFIiwiaXNzIjoiYWlyc29uaWMiLCJleHAiOjE2NjE5NTQ3MDd9.Ze0qXjXyQpy6005yqQDLgIBMqwKOuwZrA8PK0uBROeY

So it seems to me that the link being created (or returned) is missing everything including and after the "?" char in the link (example: "?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhbm9ueW1vdXMiLCJwYXRoIjoiZXh0L3NoYXJlL1NOQllFIiwiaXNzIjoiYWlyc29uaWMiLCJleHAiOjE2NjE5NTQ3MDd9.Ze0qXjXyQpy6005yqQDLgIBMqwKOuwZrA8PK0uBROeY"
AND changing the share link structure from https:///ext/share/<share_url> to https:///share/ - removing '/ext' from the URL, which is important.

Although I have no experience developing with this application, I do have a bunch of experience with Android & iOS development, so I plan on looking into this ASAP. It's going to take me a minute to see if this is simply related to the app creating the link or what the app is getting back from the server when creating a link & if there are differences between Subsonic/Airsonic/Airsonic-Advanced.

Having file sharing working properly would be awesome from the mobile app so I shall investigate some.
I am confirming that this is a bug.

My setup is as followed:
Hardware: Raspberry Pi 4 running Raspberry Pi OS (64-bit) Debian version: 11 (bullseye) - headless setup
Airsonic-Advanced in docker: airsonicadvanced/airsonic-advanced:latest
https://github.com/airsonic-advanced/airsonic-advanced
Version: 11.0.0-SNAPSHOT.20220625052932 - https://github.com/airsonic-advanced/airsonic-advanced/releases/tag/11.0.0-SNAPSHOT.20220625052932

DSub version: DSub.5.5.3-google-release.apk - https://github.com/daneren2005/Subsonic/releases/download/5.5.3/DSub.5.5.3-google-release.apk

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