Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-145

Detect and log appropriate debug info when the transfer if chunked

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 3.0.0
    • Component/s: Logging

      Description

      From Nuxeo Drive logs, we could see such lines when using the DEBUG level:

      Response from 'http://localhost:8080/nuxeo/site/automation/Document.Query': '<no content>' with headers {'X-Frame-Options': 'SAMEORIGIN', 'X-UA-Compatible': 'IE=10; IE=11', 'Cache-Control': 'no-cache', 'X-Content-Type-Options': 'nosniff', 'Content-Security-Policy': "img-src data: blob: *; default-src blob: *; script-src 'unsafe-inline' 'unsafe-eval' data: *; style-src 'unsafe-inline' *; font-src data: *", 'X-XSS-Protection': '1; mode=block', 'Content-Type': 'application/json; nuxeo-entity=documents', 'Transfer-Encoding': 'chunked', 'Date': 'Thu, 19 Dec 2019 10:11:46 GMT'} and cookies <RequestsCookieJar[]>
      

      Instead of logging "<no content>", we could say "<chunked contents>" to be more accurate.

        Attachments

          Issue Links

            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 - 4 hours
                  4h