Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-8840

Using wrong date format on repo mirror config API results in a 500

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • quay-v3.13.0
    • quay
    • False
    • Hide

      None

      Show
      None
    • False
    • Quay Enterprise

      ...
      2025-04-23T21:13:24.699041471Z gunicorn-web stdout |   File "/usr/lib64/python3.9/_strptime.py", line 349, in _strptime
      2025-04-23T21:13:24.699041471Z gunicorn-web stdout |     raise ValueError("time data %r does not match format %r" %
      2025-04-23T21:13:24.699041471Z gunicorn-web stdout | ValueError: time data '2025-04-17' does not match format '%Y-%m-%dT%H:%M:%SZ'
      2025-04-23T21:13:24.699177275Z gunicorn-web stdout | 2025-04-23 21:13:24,698 [664] [INFO] [gunicorn.access]  - - [23/Apr/2025:21:13:24 +0000] "POST /api/v1/repository/NAMESPACE/REPO/mirror HTTP/1.0" 500 0 "-" "-"
      ...
      

      The correct response of the APi call when using the wrong timestamp should be a HTTP 400 with the appropriate error message.

              Unassigned Unassigned
              rhn-support-ibazulic Ivan Bazulic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: