Bug #2841

OpenLocalizedUrl, getValidUrl HTTP error detection

Added by Matthieu Decorde over 3 years ago. Updated over 3 years ago.

Status:New Start date:06/05/2020
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:UI Spent time: -
Target version:TXM 0.8.1

Description

The OpenLocalizedUrl command valid URL test is currently not detecting the 404 errors. It is necessary to redirect users to the default TXM web pages

note: gitpages pages are effectively raising a 404

Solution

get the connection response code using "connection.getResponseCode()". if different from HttpsURLConnection.HTTP_OK, the 404 can be detected

History

#1 Updated by Matthieu Decorde over 3 years ago

  • Subject changed from Web Browser, 404 error detection to OpenLocalizedUrl, getValidUrl error detection
  • Description updated (diff)
  • % Done changed from 0 to 80

#2 Updated by Matthieu Decorde over 3 years ago

  • Subject changed from OpenLocalizedUrl, getValidUrl error detection to OpenLocalizedUrl, getValidUrl HTTP error detection

Also available in: Atom PDF