Skip to content
  1. Oct 19, 2020
  2. Oct 05, 2020
  3. Aug 21, 2020
  4. Aug 18, 2020
  5. Jul 31, 2020
  6. Jun 18, 2020
  7. 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
  8. Jul 02, 2019
  9. 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
  10. Apr 11, 2019
  11. 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
  12. Mar 20, 2019
  13. 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
  14. 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
  15. Mar 06, 2019
  16. Mar 05, 2019
    • Grégory Mantelet's avatar
      [ADQL] In the FROM, set a default alias for each table reference · 09fac540
      Grégory Mantelet authored
      (i.e. not a subquery).
      
      The idea is to avoid ambiguous error messages coming from the database when
      raising an error on a table or column name having different DB and ADQL names.
      
      This commit sets by default an alias on each table reference. This default
      alias is the ADQL table name as it is used in the ADQL query.
      
      _This commit fixes the GitHub issue #108 ._
      09fac540