GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — [visualforce] False positive on VfUnescapeEl with new Message Channel feature · Issue #2620 · pmd/pmd Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: Rule: Description: This produces a false positive when PMD encounters this, as there's no reason to escape this content. It could never be entered by a user. Docs: https://developer.salesforce.com/docs/atlas.en-us.222.0.pages.meta/pages/pages_variables_global_messagechannel.htm and https://developer.salesforce.com/docs/atlas.en-us.222.0.pages.meta/pages/message_channel_intro.htm Code Sample demonstrating the issue: <script type="text/javascript"> // Binding message channel to variable accessible to static resource. window.util = { messageChannel: '{!$MessageChannel.Record_Selected__c}' }; </script> Expected outcome: This usage should produce no rule violations with PMD. I believe it should be included in the list of safe global variable found here: pmd/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java Lines 290 to 298 in 596f27b
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |