Author: radu
Date: Fri Oct 7 13:35:28 2016
New Revision: 1763761
URL: http://svn.apache.org/viewvc?rev=1763761&view=rev
Log:
SLING-6094 - HTL can generate invalid Java code by using user-supplied input
* added license headers to pass rat checks
Modified:
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.html
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.output.html
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.html
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.output.html
Modified:
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.html
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.html?rev=1763761&r1=1763760&r2=1763761&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.html
(original)
+++
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.html
Fri Oct 7 13:35:28 2016
@@ -1,4 +1,4 @@
-<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
@@ -13,5 +13,5 @@
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<img src="" v-bind:src="abc" data-sly-attribute="${img.attributes}" />
Modified:
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.output.html
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.output.html?rev=1763761&r1=1763760&r2=1763761&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.output.html
(original)
+++
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.1.output.html
Fri Oct 7 13:35:28 2016
@@ -1,2 +1,17 @@
-
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<img src="" v-bind:src="replaced"/>
Modified:
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.html
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.html?rev=1763761&r1=1763760&r2=1763761&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.html
(original)
+++
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.html
Fri Oct 7 13:35:28 2016
@@ -1,4 +1,4 @@
-<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
@@ -13,5 +13,5 @@
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<div data-sly-test.jcr:title="${1>0}">correctly escaped variable</div>
Modified:
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.output.html
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.output.html?rev=1763761&r1=1763760&r2=1763761&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.output.html
(original)
+++
sling/trunk/bundles/scripting/sightly/java-compiler/src/test/resources/SLING-6094.2.output.html
Fri Oct 7 13:35:28 2016
@@ -1,2 +1,17 @@
-
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<div>correctly escaped variable</div>