YunoHost / packages_old

[not used anymore] YunoHost Debian package sources
http://yunohost.org
8 stars 7 forks source link

Install custom app from URL and numbers in username #42

Closed scith closed 9 years ago

scith commented 9 years ago

Hello, While trying to test the Webmin app, I noticed that the URL could not be entered for installation. I suspect it has to do with the username of the creator containing numbers, because the fork made by someone without numbers worked.

Thanks

opi commented 9 years ago

Numbers are allowed for the username. See https://github.com/YunoHost/admin_js/blob/master/views/app/app_list.ms#L58

Can you please post the 2 urls, precising which one works and which one not. Thx

scith commented 9 years ago

Hum, I don't really get it but the links works on my production environment (debian dedicated server, using firefox on my client) but not on my virtual machine (debian as well using iceweasel on it). https://github.com/drfred1981/webmin_ynh does not work on my VM but https://github.com/yodaze/webmin_ynh does. https://github.com/Chao-Man/sickbeard_ynh does not work as well on my VM.

opi commented 9 years ago

Strange, it works on my side, but I use testing packages. You can try with the command line :

yunohost app install https://github.com/Chao-Man/sickbeard_ynh
scith commented 9 years ago

Hm yes it does work with Moulinette. Strange that it doesn't from the web browser of my VM though... But thanks I can use Moulinette for now then.

opi commented 9 years ago

It's because the web admin use a pattern (html5) on the url field to prevent not-github url to be entered. Btw, can you give me the pattern attributes of your github url field ?

scith commented 9 years ago

pattern="^https://github.com/[a-z-_]*/[a-z-_]*"

opi commented 9 years ago

Oh, you sure have an old version, the actual pattern is

pattern="^https://github.com/[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+[/]?$"

Is your YunoHost server up to date ? An maybe we miss an update on our side, and we need to release un update soon. Sorry, and thanks for pointing it out

scith commented 9 years ago

Oh thanks that should be it then! I should have an old version on my VM... Sorry about the fuss! Everything is working fine on my main server (which is up-to-date)

opi commented 9 years ago

thx for feedback