I've been having a go at this, for luaforge.net. To start with I just changed the URLs, and it can
log in, but I still get a login failure, because for some reason the page returned is the login page,
so it can't retrieve the project list. I'm not sure what's going on, as http://luaforge.net/account/
login.php?return_to=%2Fmy%2F does the right thing if I put it in to my web browser (i.e. return_to
does seem to work). Any help gratefully received.
The only code change I had to make (other than the URLs, which I consider configuration) was to the
login form, which is simpler on the version of GForge used by LuaForge: it doesn't have any of the
following options:
'stay_in_ssl': '1',
'persistent_login': '1',
'login': 'Login With SSL',
It should be easy to add/remove the SSL options based on whether the URLs are http or https; I'm not
sure how you fix persistent_login, and I suppose its lack might cause problems later on (but I'm
assuming it's not guilty in this case).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, figured out my problem; I was being stupid: I still need to send "login" (in this case, with a
value of "Login").
I'll let you know once I have been successful in uploading. I'm not sure how you want to support
multiple servers, but I can at least supply the URLs for LuaForge and the small changes needed to
make it work (basically, you'd need to make SSL optional).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I attach a patch to add a command-line flag --server. It defaults to SourceForge. I haven't tried to
add any GUI to support multiple servers.
In order to avoid confusion, I don't read the projects file any more, as I haven't attempted to add
per-server support here. I'm dubious about the value of caching this information anyway: it doesn't
take long to read.
The patch is against the 1.1 release. I've not yet tested it for file releases, but will do so
shortly; it certainly logs in and displays projects correctly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch revised. It won't yet work with LuaForge because that site doesn't support anonftp. POST of uploads is something that needs to be added to ReleaseForge, therefore.
However, it does now correctly retrieve packages (which before it didn't).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=50145
I've been having a go at this, for luaforge.net. To start with I just changed the URLs, and it can
log in, but I still get a login failure, because for some reason the page returned is the login page,
so it can't retrieve the project list. I'm not sure what's going on, as http://luaforge.net/account/
login.php?return_to=%2Fmy%2F does the right thing if I put it in to my web browser (i.e. return_to
does seem to work). Any help gratefully received.
The only code change I had to make (other than the URLs, which I consider configuration) was to the
login form, which is simpler on the version of GForge used by LuaForge: it doesn't have any of the
following options:
'stay_in_ssl': '1',
'persistent_login': '1',
'login': 'Login With SSL',
It should be easy to add/remove the SSL options based on whether the URLs are http or https; I'm not
sure how you fix persistent_login, and I suppose its lack might cause problems later on (but I'm
assuming it's not guilty in this case).
Logged In: YES
user_id=50145
OK, figured out my problem; I was being stupid: I still need to send "login" (in this case, with a
value of "Login").
I'll let you know once I have been successful in uploading. I'm not sure how you want to support
multiple servers, but I can at least supply the URLs for LuaForge and the small changes needed to
make it work (basically, you'd need to make SSL optional).
Logged In: YES
user_id=50145
I attach a patch to add a command-line flag --server. It defaults to SourceForge. I haven't tried to
add any GUI to support multiple servers.
In order to avoid confusion, I don't read the projects file any more, as I haven't attempted to add
per-server support here. I'm dubious about the value of caching this information anyway: it doesn't
take long to read.
The patch is against the 1.1 release. I've not yet tested it for file releases, but will do so
shortly; it certainly logs in and displays projects correctly.
patch against 1.1
Logged In: YES
user_id=50145
Originator: YES
Patch revised. It won't yet work with LuaForge because that site doesn't support anonftp. POST of uploads is something that needs to be added to ReleaseForge, therefore.
However, it does now correctly retrieve packages (which before it didn't).