Uploaded image for project: 'SonarPython'
  1. SonarPython
  2. SONARPY-577

Fix FN on S2092: setting a cookie without secure flag

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      from http.cookies import SimpleCookie
      
      cookie = SimpleCookie()
      cookie['c1'] = 'value' # FN
      

      and, at the same this, it should not raise here:

      from http.cookies import SimpleCookie
      
      cookie = SimpleCookie()
      cookie['c1'] = 'value' # OK, secure flag is set afterwards
      cookie['c1']['secure'] = True
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              andrea.guarino Andrea Guarino
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: