Private CloudronVersions.json
-
@robi we are working on this. There is a new container registry app which we have made from scratch. Still finishing things up before we can make an announcement .
-
Hello,
reading this thread i was wondering why can't we just use/offer the classic http with "Basic Authentication" with the username + password embedded in the URL ?That would (in theory) cloudron avoiding to need to create some separate flow or extra fields
But just use a single/simple url field to (optionally) carry the auth information.https://user:password@domain/path
That would allow people to use any server / service offering http-basic authentication (essentially any webserver)
Trying that our in cloudron 'Add community app' that immediately fails with "versionsUrl is not a valid URL".
Technically that fails in box/src/community.js but it looks like problem is rather in the frontend here in the onSubmit of the CommunityAppDialog
const [url, version] = versionsUrl.value.split("@");
which seems to use the @ symbol in the URL for some other cloudron specific purpose and thus rejecting otherwise valid urls ?
Note that even allowing those url that would probably need some small change on cloudron backend as fetch API apparently doesn't allow url using url with embedded username/password. But that could be easily avoided converting those if present to the Authorization http header and stripping them from the url object itself.
-
Hello @james. I tried that before and it fails with the error message i mentioned "versionUrl is not a valid URL".
Trying to explain a bit better what i mean
Problem seems to be that this line in your frontend code
const [url, version] = versionsUrl.value.split("@");For URL entered in the Cloudron Admin UI of value https://user:password@domain/path
The http-request send by the Admin-UI is
/api/v1/community/app?access_token=<redacted>&url=https://user:password&version=domain/path
which can be seen in Browser Developer tools.As the frontend code seems use the @ character for its own purpose.
I'm not sure what it is trying to do as in the Publishing documentation there's no information about an @ symbol or some version value in the URL.With gitlab.cloudron.io not accessible i can't share code link what i talk about for 'split' by @ is this code here

My guess is that this then too short url from that split reaches the backend here: box/src/community.js

and then is no longer a valid URL.That is just a theory i might be totally wrong (and i don't have a test system i can add some debugging right now)
-
Hello @james. I tried that before and it fails with the error message i mentioned "versionUrl is not a valid URL".
Trying to explain a bit better what i mean
Problem seems to be that this line in your frontend code
const [url, version] = versionsUrl.value.split("@");For URL entered in the Cloudron Admin UI of value https://user:password@domain/path
The http-request send by the Admin-UI is
/api/v1/community/app?access_token=<redacted>&url=https://user:password&version=domain/path
which can be seen in Browser Developer tools.As the frontend code seems use the @ character for its own purpose.
I'm not sure what it is trying to do as in the Publishing documentation there's no information about an @ symbol or some version value in the URL.With gitlab.cloudron.io not accessible i can't share code link what i talk about for 'split' by @ is this code here

My guess is that this then too short url from that split reaches the backend here: box/src/community.js

and then is no longer a valid URL.That is just a theory i might be totally wrong (and i don't have a test system i can add some debugging right now)
With gitlab.cloudron.io not accessible i can't share code link what i talk about for 'split' by @ is this code here
it is git.cloudron.io
-
Hello @james. I tried that before and it fails with the error message i mentioned "versionUrl is not a valid URL".
Trying to explain a bit better what i mean
Problem seems to be that this line in your frontend code
const [url, version] = versionsUrl.value.split("@");For URL entered in the Cloudron Admin UI of value https://user:password@domain/path
The http-request send by the Admin-UI is
/api/v1/community/app?access_token=<redacted>&url=https://user:password&version=domain/path
which can be seen in Browser Developer tools.As the frontend code seems use the @ character for its own purpose.
I'm not sure what it is trying to do as in the Publishing documentation there's no information about an @ symbol or some version value in the URL.With gitlab.cloudron.io not accessible i can't share code link what i talk about for 'split' by @ is this code here

My guess is that this then too short url from that split reaches the backend here: box/src/community.js

and then is no longer a valid URL.That is just a theory i might be totally wrong (and i don't have a test system i can add some debugging right now)
-
Hello @james. I tried that before and it fails with the error message i mentioned "versionUrl is not a valid URL".
Trying to explain a bit better what i mean
Problem seems to be that this line in your frontend code
const [url, version] = versionsUrl.value.split("@");For URL entered in the Cloudron Admin UI of value https://user:password@domain/path
The http-request send by the Admin-UI is
/api/v1/community/app?access_token=<redacted>&url=https://user:password&version=domain/path
which can be seen in Browser Developer tools.As the frontend code seems use the @ character for its own purpose.
I'm not sure what it is trying to do as in the Publishing documentation there's no information about an @ symbol or some version value in the URL.With gitlab.cloudron.io not accessible i can't share code link what i talk about for 'split' by @ is this code here

My guess is that this then too short url from that split reaches the backend here: box/src/community.js

and then is no longer a valid URL.That is just a theory i might be totally wrong (and i don't have a test system i can add some debugging right now)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login