Skip to content
  1. Mar 26, 2021
  2. Oct 19, 2020
  3. Oct 05, 2020
  4. Aug 21, 2020
  5. Aug 18, 2020
  6. Jul 31, 2020
  7. Jun 18, 2020
  8. Jan 29, 2020
    • Grégory Mantelet's avatar
      [TAP,UWS] Fix backup restoration. When restoring upload only, the error message: · 3f246d19
      Grégory Mantelet authored
      ```
      RESTORATION Incorrect JSON format for the serialization of an uploaded file!
      Caused by a org.json.JSONException: JSONObject["length"] not a string.
      [...]
      
      RESTORATION Incorrect JSON format for the DALIUpload labelled "xxx" of the job "xxxxxxxxx": "xxxxxxxx" is not pointing a job parameter representing a file!
      [...]
      
      RESTORATION Unexpected error while restoring the UWS!
      Caused by a java.lang.NullPointerException: Missing UploadFile! => Can not build a DaliUpload instance.
      [...]
      ```
      
      Now, in case of grave error while restoring backup files, it will be just
      disabled, instead of preventing start-up of the TAP service.
      In case of non-grave error while restoring a job or a user, the failed job or
      error won't be restored and then the restoration process will go on with the
      other jobs/users.
      3f246d19
  9. Jul 02, 2019
  10. May 10, 2019
    • Grégory Mantelet's avatar
      [ADQL,TAP] New parser for ADQL-2.1. · 89418d13
      Grégory Mantelet authored
      - Now, `ADQLParserFactory.createParser(...)` should be used to create a parser
      - Only the new function `LOWER` is supported for the moment
      - Not yet possible to manage the optional features _(next dev to come)_
      => 1st step for ADQL-Lib v2.0
      
      - TAP adapted so that using the last stable version of the ADQL language
        (i.e. 2.0 for the moment)
        - but not yet possible to set the ADQL version to use in the configuration
          file
      89418d13
  11. Apr 11, 2019
  12. Apr 02, 2019
    • Grégory Mantelet's avatar
      [UWS] Fix the parsing of the HTTP header `Accept`. · 8af5a319
      Grégory Mantelet authored
      In case a MIME-type parameter was not `q` set to a floating point value
      (e.g. correct is `q=0.8` ; incorrect is `q=abc`), the library was throwing an
      ugly NumberFormatException. This exception is now caught (and ignored) if it
      occurs.
      
      The same exception was also thrown for any other parameter whose value is not a
      floating point. Since only the quality flag (i.e. `q`) is used in UWS-Lib,
      parameters are now only parsed if it is `q` ; all others are now ignored.
      8af5a319
  13. Mar 20, 2019
  14. Mar 13, 2019
    • Grégory Mantelet's avatar
      [ADQL] Add to the parser a function attempting to quickly fix an ADQL query. · 15cd5944
      Grégory Mantelet authored
      This new function - ADQLParser.tryQuickFix(...) - fixes the most common issues
      with ADQL queries:
      
      - replace Unicode confusable characters by their ASCII/UTF-8 version,
      - double-quote SQL reserved words/terms (e.g. `public`, `year`, `date`),
      - double-quote ADQL function names used a column name/alias (e.g. `distance`,
        `min`, `avg`),
      - double-quote invalid regular identifiers (e.g. `_RAJ2000`, `2mass`).
      
      The last point is far from being perfect but should work at least for
      identifiers starting with a digit or an underscore, or an identifier including
      one of the following character: `?`, `!`, `$`, `@`, `#`, `{`, `}`, `[`, `]`,
      `~`, `^` and '`'.
      
      It should also been noted that double-quoting a column/table name will make it
      case-sensitive. Then, it is possible that the query does not pass even after the
      double-quote operation ; the case would have to be checked by the user.
      
      Finally, there is no attempt to fix column and table names (i.e. case
      sensitivity and/or typos) using tables/columns list/metadata. That could be a
      possible evolution of this function or an additional feature to implement in the
      parser.
      15cd5944
    • Grégory Mantelet's avatar
  15. Mar 08, 2019
    • Grégory Mantelet's avatar
      [UWS,TAP] Externalize `org.json`. · 93701deb
      Grégory Mantelet authored
      `org.json` was included in the sources of UWS-/TAP-Lib because of a manual
      small correction. This is no longer needed. So this library is now a dependency
      (included in the generated JAR). This has also been upgraded to the version of
      August 2018.
      
      _This commit aims to reproduce the original content of the Pull Request #38
       by @vforchi ._
      93701deb
  16. Mar 06, 2019
  17. Mar 05, 2019
  18. Feb 19, 2019
  19. Jan 28, 2019
  20. Nov 13, 2018
  21. Nov 08, 2018
  22. Nov 07, 2018
    • Grégory Mantelet's avatar
      [TAP] Fix memory issues for the 'text/plain' format. · 3e65794d
      Grégory Mantelet authored
      The previous text formatting process was storing the entire table in memory....
      hence OutOfMemoryError when dealing with large table.
      
      Now, this process is done entirely in memory only for a table having less than
      1000 lines. For a larger table, its content is stored in a temporary file. This
      file is deleted after usage or in case of error.
      
      This formatting process has been tested under JVM monitoring (both JConsole and
      VisualVM) and tables larger than 3,000,000 rows, with success.
      
      This commit fixes the GitHub issue #40
      3e65794d
  23. Nov 02, 2018
    • Grégory Mantelet's avatar
      [TAP] Fix cancellation of a text formatting process. · f912c20a
      Grégory Mantelet authored
      Before this fix, cancelling a TAP job (async or not) which was formatting the
      result in ASCII may failed, especially for large results. This was due to a
      non interruptible alignment process. This process is now checking whether a
      cancellation has been requested before formatting a new result line/row ; if so,
      the process is immediately stopped and the job can be cleaning declared as
      aborted.
      f912c20a