Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1936

Fix Content-Type header parsing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Crowdin

      Description

      As the Content-Type header can contain additional information such as charset, we should check that the Content-Type header starts with text/xml instead of a strict equality.

      Traceback (most recent call last):
      08:34:36   File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 139, in <module>
      08:34:36     main()
      08:34:36   File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 134, in main
      08:34:36     cu.upload(args.inputfile, parentdir=args.parentdir)
      08:34:36   File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 90, in upload
      08:34:36     raise ValueError('Upload failed: %s' % res[1])
      08:34:36 ValueError: Upload failed: Wrong response content type: text/xml;charset=UTF-8
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m