Make entering a Login URI in the grid manager more robust.

Before, when anything but the exact correct Login URI was entered, the
user would either get no error, or a pop up saying "Cannot retrieve grid
info from server."

With this patch, that pop up includes what went wrong and stresses that
they check if they entered the correct Login URI and where to find it.

I was motivated to write this after looking at crash report 8405 where
a user who had downloaded Singularity for the very first time crashed
twice when entering things like "aviworlds" and " aviworlds.com:8002"
(not the space), and "http:aviworlds.com:8002" (missing '//').

Especially in the light of FS accepting Login URI without the 'http://',
a lot of grid websites (like that of aviworlds) might instruct users
to enter the url without http://. Ie, this user was told to enter
just "aviworlds.com:8002", and when that failed was instructed to
add 'http' in front of it...

Now the code accepts also really WEIRD things, but will never mess
up a good entry. For example, if you enter "pssshht:aviworlds.com:8002"
then that will work, as a side effect. The real objective however is
of course to let things work like: "aviworlds.com:8002  ",
"http:aviworlds.com:8002", " http:/aviworlds.com:8002", and to give
a usable error message when there is a typo in the hostname (Cannot
resolve hostname) or they forget to add a port number (404, or
connection refused), plus the text "Make sure you entered the correct
Login URI. An example of a Login URI is: \"http://cool.grid.com:8002/\",
this url can usually be found on the website of the grid."
This commit is contained in:
Aleric Inglewood
2013-11-19 21:20:31 +01:00
parent 06bebcc5c4
commit ea0e25b92b
10 changed files with 167 additions and 66 deletions

View File

@@ -1860,8 +1860,6 @@ Ein Grid mit dem gleichen Namen existiert bereits.</notification>
<notification name="GridInfoNoLoginUri">Eine Login URI wird ben&#xF6;tigt um die Grid Informationen ab zu rufen.</notification>
<notification name="GridInfoError">Grid Info kann nicht vom Server abgerufen werden.</notification>
<notification name="HelpRenderCompat">Bauten mit erweiterten Hohlr&#xE4;umen oder erweiterten Lochgr&#xF6;&#xDF;en werden auf anderen Viewern oft nicht korrekt gerendert. Bitte lassen Sie diese Option aktivuert, wenn Sie Ihren Bauten auch auf anderen Viewern korrekt anzeigen lassen wollen.</notification>
<notification name="ExportFailed">Fehlende Berechtigung zum Exportieren vom Objekt. Exportieren abgebrochen.</notification>

View File

@@ -9,6 +9,7 @@
<string name="hippo_label_week">week</string>
<string name="TeleportOfferMaturity">[NAME] is offering a TP to [DESTINATION]</string>
<string name="TeleportLureMaturity">[NAME]'s teleport lure is to [DESTINATION]</string>
<string name="GridInfoError">Grid Info kann nicht vom Server abgerufen werden:</string>
<!-- Default Args - these arguments will be replaced in all strings -->
<string name="SECOND_LIFE">Second Life</string>

View File

@@ -5801,13 +5801,6 @@ A grid with the same nickname already exists.
A login URI is required to retrieve the grid info.
</notification>
<notification
icon="alertmodal.tga"
name="GridInfoError"
type="alertmodal">
Cannot retrieve grid info from server.
</notification>
<notification
icon="alertmodal.tga"
name="HelpRenderCompat"

View File

@@ -13,6 +13,15 @@
<string name="TeleportLureMaturity">
[NAME]'s teleport lure is to [DESTINATION]
</string>
<string name="GridInfoError">Cannot retrieve grid info from server:</string>
<!-- The following entry starts and ends with a ", this is to allow the newline at the beginning. It also requires to use \" for quotes within. -->
<string name="GridInfoErrorInstruction">"
Make sure you entered the correct Login URI. An example of a Login URI is: \"http://cool.grid.com:8002/\", this url can usually be found on the website of the grid."
</string>
<string name="GridInfoErrorNoLoginURI">A login URI is required to retrieve the Grid Info.</string>
<string name="GridInfoErrorNotFound">404 Page not found</string>
<string name="GridInfoErrorNotAllowed">This grid does not support retrieving 'Grid Info'</string>
<string name="GridInfoParseError">XML Parse Error: [XML_ERROR]</string>
<!-- Default Args - these arguments will be replaced in all strings -->
<string name="SECOND_LIFE">Second Life</string>
@@ -4368,9 +4377,11 @@ Try enclosing path to the editor with double quotes.
<string name="completed_from">Teleport completed from</string>
<!-- AIAlert messages -->
<!-- These two do not need translation ;) -->
<string name="AIError">"\"[ERROR]\""</string>
<string name="AIPrefix">"[PREFIX]: "</string>
<!-- AIFile exception alerts -->
<!-- AIFile exception alerts -->
<string name="AIFile_mkdir_Failed_to_create_DIRNAME">Failed to create folder [DIRNAME]: [ERROR]</string>
<string name="AIFile_rmdir_Failed_to_remove_DIRNAME">Failed to remove folder [DIRNAME]: [ERROR]</string>
<string name="AIFile_fopen_Failed_to_open_FILENAME">Failed to open file "[FILENAME]": [ERROR]</string>

View File

@@ -3262,11 +3262,7 @@ Ya existe un grid con el mismo nombre.
<notification name="GridInfoNoLoginUri">
Se requiere un URI de inicio de sesión para recuperar la información del grid.
</notification>
<notification name="GridInfoError">
No se puede recuperar la información del grid desde el servidor.
</notification>
<notification name="HelpRenderCompat">
Las construcciones con huecos extendidos o tamaños de agujeros extendidos no se renderizarán adecuadamente en otros visores. Por favor, mantén esta opción marcada si quieres que tus construcciones se vean adecuadamente in otros visores.
</notification>

View File

@@ -9,6 +9,7 @@
<string name="hippo_label_week">semana</string>
<string name="TeleportOfferMaturity">[NAME] te ofrece un TP a [DESTINATION]</string>
<string name="TeleportLureMaturity">[NAME] te ofrece una invitación de teleporte a [DESTINATION]</string>
<string name="GridInfoError">No se puede recuperar la información del grid desde el servidor:</string>
<!-- Default Args - these arguments will be replaced in all strings -->
<string name="SECOND_LIFE">Second Life</string>