Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3028

FP on S4817: Do not raise issue on hardcoded strings

    Details

    • Type: False-Positive
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rules
    • Labels:
      None

      Description

      Java implementation of RSPEC-4817 should stop raising issues on hardcoded XPATH strings.
      This only includes the cases we already detect with AbstractInjectionChecker.isDynamicString. No inter-procedural detection is required.

      Once this is done the Java Sub-Task of RSPEC-4817 should be updated by adding to the description:
      <BEGIN>

      Exceptions

      Hard-coded XPath strings will not raise an issue.
      <END>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nicolas.harraudeau Nicolas Harraudeau
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: