Found "Page Rules" in CloudFlare, set rule:
Code: Select all
addons.oolite.space/api/1.0/overview/
Forwarding URL
(Status Code: 301 - Permanent Redirect, Url: http://addons.oolite.space/api/1.0/overview)
Moderators: winston, another_commander
Found "Page Rules" in CloudFlare, set rule:
Code: Select all
addons.oolite.space/api/1.0/overview/
Forwarding URL
(Status Code: 301 - Permanent Redirect, Url: http://addons.oolite.space/api/1.0/overview)
The redirect is not necessarily the solution.timer wrote: ↑Tue Sep 12, 2023 1:57 amFound "Page Rules" in CloudFlare, set rule:@hiran, It is must help! (in theory...)Code: Select all
addons.oolite.space/api/1.0/overview/ Forwarding URL (Status Code: 301 - Permanent Redirect, Url: http://addons.oolite.space/api/1.0/overview)
well... manifest file moved as overview/index.html, now it must working as u expect - opening directory url overview/ - will send content of index file (thanks to GitHub Pages - it support index files).hiran wrote: ↑Tue Sep 12, 2023 6:07 amThe redirect is not necessarily the solution.
I cannot tell how Oolite downloads the data. But my OoliteStarter directly ecpects the result - it does not follow a redirect.
While I can add the redirect feature or simply the new URL we will invalidate all the clients that have been installed so far. Not a good idea.
Please keep the URL as it used to be.
Thank you. Yes, I can see it works as before now.timer wrote: ↑Tue Sep 12, 2023 11:18 amwell... manifest file moved as overview/index.html, now it must working as u expect - opening directory url overview/ - will send content of index file (thanks to GitHub Pages - it support index files).
redirect swaped, now
overview >> 301 redirect >> overview/
The design of the API may have issues. But it already happened, it has been there for years and there are clients out there that rely on it.
Yep, it is our legacy, but...hiran wrote: ↑Tue Sep 12, 2023 12:33 pmThe design of the API may have issues. But it already happened, it has been there for years and there are clients out there that rely on it.
So I totally agree with you: It is difficult to change/fix this. Maybe it is easier to simply accept that flaw. AFAIK it is the only API function we have.
Code: Select all
/*static NSString * const kOOOXZDataURL = @"http://addons.oolite.org/api/1.0/overview";*/
static NSString * const kOOOXZDataURL = @"http://addons.oolite.space/api/1.0/overview";
IMHO this issue (bad utf symbol) is not related to main manifest url changes.hiran wrote: ↑Tue Sep 12, 2023 12:33 pmBut if we want to change it, we will have to prepare the change better than it was done this time.
See https://bb.oolite.space/viewtopic.php?p=291143#p291143
Oh, I hope @hiran will understand meCholmondely wrote: ↑Tue Sep 12, 2023 5:25 pmI am sitting here, reading a conversation between a German and a Russian.
That conversation is in English. I can actually understand each word individually, but have no idea what any complete sentence actually says.
Not a complaint. Not a demand to understand. Or to be included. Just rather amazed!
I am totally surprised myself. Since when did this happen? Looking at the history of that code line I seetimer wrote: ↑Tue Sep 12, 2023 2:26 pmYep, it is our legacy, but...
in source file:so... in origin we have exactly file url - not directory?Code: Select all
/*static NSString * const kOOOXZDataURL = @"http://addons.oolite.org/api/1.0/overview";*/ static NSString * const kOOOXZDataURL = @"http://addons.oolite.space/api/1.0/overview";
This url give us 404 http://addons.oolite.org/api/1.0/overview/.
But http://addons.oolite.org/api/1.0/overview is downloading...
(Of course an entry in the hosts file is required for this checks)
Nginx on my VPS has special condition for processing overview/ without redirect.
Therefore, when the file was sent through my server, it accepted both URLs equally.
I don’t think that we can setup this on GitHub
Now we changed origin manifest url???
Code: Select all
-static NSString * const kOOOXZDataURL = @"http://addons.oolite.org/api/1.0/overview";
+/* switching (temporarily maybe) to oolite.space - Nikos 20230507 */
+/*static NSString * const kOOOXZDataURL = @"http://addons.oolite.org/api/1.0/overview";*/
+static NSString * const kOOOXZDataURL = @"http://addons.oolite.space/api/1.0/overview";
Yes, there are two different changes:timer wrote: ↑Tue Sep 12, 2023 2:26 pmIMHO this issue (bad utf symbol) is not related to main manifest url changes.hiran wrote: ↑Tue Sep 12, 2023 12:33 pmBut if we want to change it, we will have to prepare the change better than it was done this time.
See https://bb.oolite.space/viewtopic.php?p=291143#p291143
https://bb.oolite.space/viewtopic.php?p=291177#p291177
The fun part is: We are not really technical this time. Should we switch to HTTP status codes, REST API design patterns or character encoding and escaping?timer wrote: ↑Tue Sep 12, 2023 5:44 pmOh, I hope @hiran will understand meCholmondely wrote: ↑Tue Sep 12, 2023 5:25 pmI am sitting here, reading a conversation between a German and a Russian.
That conversation is in English. I can actually understand each word individually, but have no idea what any complete sentence actually says.
Not a complaint. Not a demand to understand. Or to be included. Just rather amazed!
see branch only-media! GitHub Pages now use subdomain addons.oolite.space
No!
Not sure what this means, then: