•  
      request #10540 Fix regex expression to match the first occurence of a date
    Infos
    #10540
    Omar R Zavala (eomarza)
    2017-08-11 17:10
    2017-08-09 16:04
    10495
    Details
    Fix regex expression to match the first occurence of a date
    Problem:
    ../Svn/Logs/Parser.php has a regular expression that matches the "url " group as a "date", then tuleap-svn-log-parser fails whit the following error:

    Aug 04 21:16:24 eselivm2v1428l.lmera.ericsson.se systemd[1]: Started SVN Logs Parser Service.
    Aug 04 21:16:24 eselivm2v1428l.lmera.ericsson.se svn_stats_to_db.php[19432]: *** ERROR: DateTime::__construct(): Failed to parse time string (VHA) at position 0 (V): The timezone could not be found in the database

    This is because the url contains [] characters, ex.

    150.132.181.140 - ewenzye [03/Aug/2017:04:33:32 +0200] /svnplugin/ses/ses-document/!svn/rvr/7368/solution/2017/MRD/21117 [VHA] Clean up eSIM subscription from customer care API 207 "get-dir /solution/2017/MRD/21117%20%5BVHA%5D%20Clean%20up%20eSIM%20subscription%20from%20customer%20care%20API/ r7368 text"

    and the parser recognizes the date as

    [03/Aug/2017:04:33:32 +0200] /svnplugin/ses/ses-document/!svn/rvr/7368/solution/2017/MRD/21117 [VHA]
    SCM/Subversion
    9.9
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-08-11
    Attachments
    Empty
    References

    Follow-ups

    • User avatar
      Thomas Gerbet (tgerbet)2017-08-11 17:10
      Thank you for contribution! Welcome into the Tuleap contributors group :)


      gerrit #9215 integrated into Tuleap 9.10.99.106.

      • Status changed from New to Closed
      • Connected artifacts
      • Close date set to 2017-08-11