Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1345

Revise fragile session ID assertions

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0, 1.6.0alpha2
    • Labels:
      None

      Description

      This task appears to have failed due to an unexpected newline character in a session ID's raw bytes. Rather than dumping the raw bytes, we should consider converting to hex or making some other assertion that might prevent such a failure.

      TEST 1665/1750 [tests/session/session-getLogicalSessionId-001.phpt]
       [2019/03/03 05:28:19.970] ========DIFF========
       [2019/03/03 05:28:19.970] 005+     string(16) ":�HџN������
       [2019/03/03 05:28:19.970] 006+ 0"
       [2019/03/03 05:28:19.970] 005-     string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
       [2019/03/03 05:28:19.970] ========DONE========
       [2019/03/03 05:28:19.970] FAIL MongoDB\Driver\Session::getLogicalSessionId() [tests/session/session-getLogicalSessionId-001.phpt]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: