Skip to content

Commit d4021ee

Browse files
committed
Update for 1.7.12 release.
1 parent 7bf6a37 commit d4021ee

File tree

7 files changed

+133
-50
lines changed

7 files changed

+133
-50
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Rhino is licensed under the [MPL 2.0](./LICENSE.txt).
2020
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_9_Release">Rhino 1.7.9</a></td><td>March 15, 2018</td></tr>
2121
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_10_Release">Rhino 1.7.10</a></td><td>April 9, 2018</td></tr>
2222
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_11_Release">Rhino 1.7.11</a></td><td>May 30, 2019</td></tr>
23+
<tr><td><a href="https://github.com/mozilla/rhino/releases/tag/Rhino1_7_12_Release">Rhino 1.7.11</a></td><td>January 13, 2020</td></tr>
2324
</table>
2425

2526
[Release Notes](./RELEASE-NOTES.md) for recent releases.
@@ -84,7 +85,7 @@ mavenReleaseRepo=
8485

8586
Rhino can run as a stand-alone interpreter from the command line:
8687
```
87-
java -jar buildGradle/libs/rhino-1.7.11.jar -debug -version 200
88+
java -jar buildGradle/libs/rhino-1.7.12.jar -debug -version 200
8889
Rhino 1.7.9 2018 03 15
8990
js> print('Hello, World!');
9091
Hello, World!

RELEASE-NOTES.md

+96
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,99 @@
1+
# Rhino 1.7.12
2+
## January 13, 2020
3+
4+
### XML external entities disabled by default
5+
6+
As of this release, Rhino makes "XML external entity injections" more difficult
7+
by disabling fetching of external DTDs and stylesheets by default,
8+
as recommended in the (OWASP Cheat Sheet)
9+
[https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md].
10+
Even though this may break some existing projects, the fact that this
11+
vulnerability is in the OWASP top 10 makes it important enough to change
12+
the default.
13+
14+
Developers who still need this old capability can re-enable it by setting the
15+
Context feature flag FEATURE_ENABLE_XML_SECURE_PARSING to false. (The default
16+
is true.)
17+
18+
### New JAR for embedding use cases
19+
20+
This release also includes a second JAR artifact, "rhino-runtime.jar". This is
21+
simply the existing Rhino JAR with the "tools" source directory excluded.
22+
This directory includes the Rhino shell as well as the default "Global"
23+
object, which includes capabilities to load and process external source
24+
code.
25+
26+
Since some automated source-scanning tools mark these capabilties as insecure,
27+
this new JAR provides a way to only include the parts of Rhino that embedders
28+
typically need without pulling in additional capabilities.
29+
30+
Developers who typically embed "rhino.jar" might consider embedding "rhino-runtime.jar"
31+
instead if they do not need all this.
32+
33+
Thanks to the following developers for the contributions below!
34+
35+
Aditya Pal (1):
36+
* Fix syntax error for comments in array (#607)
37+
38+
Chris Smith (1):
39+
* Adding secure configuration for XML parsers (#600)
40+
41+
Gregory Brail (12):
42+
* Update versions for 1.7.12 release.
43+
* Fix a code generation bug for generators.
44+
* Fix "fall through" comment.
45+
* Fix static analysis around NaN values.
46+
* More isNaN fixes and one rounding bug.
47+
* Make XML processor configuration more robust.
48+
* Enable SpotBugs plugin.
49+
* Fix minor static analysis findings.
50+
* Increase Travis timeout.
51+
* Disable more flaky "BigO" tests.
52+
* Fix handling of "return" in iterators.
53+
* Undo setting some members "final".
54+
55+
Ivan Di Francesco (1):
56+
* Fix warnings (#596)
57+
58+
Roland Praml (2):
59+
* FIX: NativeJavaObject.getDefaultValue recognizes numbers correctly
60+
* #511 fixing InterfaceAdapter abstract name lookup.
61+
62+
Stijn Kliemesch (7):
63+
* Private static method ScriptRuntime.enumInitOrder(Context,IdEnumeration) no longer expects given IdEnumeration's property obj to be of type ScriptableObject specifically, only of type SymbolScriptable.
64+
* Added testclass IterableTest to test iterable implementations, currently with one testcase for a host object, specifically one that uses Array Iterator.
65+
* Added more tests to IterableTest.
66+
* Fix for #616 (#617)
67+
* Fixes for calling several Object.prototype members.
68+
* Fixed dynamic scoping for implementations of Object.create and Object.defineProperties
69+
* Testcase for dynamic scoping and Object.create.
70+
71+
nename0 (2):
72+
* Fix Array.include return a wrapped Boolean
73+
* implement Array.includes to align to specs
74+
75+
RBRi (20):
76+
* fix for Map/Set working with ConsString as key also; closes #583
77+
* fix propertyIsEnumerable when using an index to access string; closes #582
78+
* ignore surplus search/match/replace parameters; closes #581
79+
* add support for setPrototypeOf
80+
* fixed imports
81+
* RangeError should be throw if the argument of Number.prototype.toFixed is less than 0 fixes #587
82+
* fix interpreter fallback when using streams (fixes #592)
83+
* Parser already always reads the reader into a string. Move this reader handling to the Context to be able to fall back to the interpreter in all cases.
84+
* fix imports
85+
* functions declared as var f = function f() {...} within a function should not impact higher scope variable with the same name
86+
* functions declared as var f = function f() {...} within a function should not impact higher scope variable with the same name
87+
* fix Boolean(document.all)
88+
* many more tests are passing already and some cleanup
89+
* add tests for built-ins/ThrowTypeError and built-ins/TypedArray
90+
* add tests for built-ins/TypedArrays
91+
* fix BYTES_PER_ELEMENT property
92+
* fix BYTES_PER_ELEMENT prototype property
93+
* fix TypedArray constructor arity
94+
* Fix issue with parseInt's handling of leading zeroes
95+
* #529 (#628)
96+
197
# Rhino 1.7.11
298
## May 30, 2019
399

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,4 @@ distributions {
331331
}
332332
}
333333

334-
distZip.dependsOn javadoc, jar
334+
distZip.dependsOn javadoc, jar, sourceJar, runtimeSourceJar

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rootProject.name=rhino
22
group=org.mozilla
3-
version=1.7.12-SNAPSHOT
3+
version=1.7.12
44
buildDir=buildGradle
55
mavenSnapshotRepo=https://oss.sonatype.org/content/repositories/snapshots
66
mavenReleaseRepo=https://oss.sonatype.org/service/local/staging/deploy/maven

maven/maven-pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<groupId>org.mozilla</groupId>
1313
<artifactId>rhino</artifactId>
1414
<name>Mozilla Rhino</name>
15-
<version>1.7.12-SNAPSHOT</version>
15+
<version>1.7.12</version>
1616

1717
<packaging>jar</packaging>
1818
<description>

maven/maven-staging-deploy.sh

+30-44
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,37 @@
11
#!/bin/sh
22

3+
function deploy {
4+
if [ ! -f $1 ]
5+
then
6+
echo "Missing $1"
7+
exit 1
8+
fi
9+
10+
tf=/var/tmp/file.$$.jar
11+
rm -f ${tf}
12+
cp $1 ${tf}
13+
14+
mvn gpg:sign-and-deploy-file \
15+
-Dfile=${tf} \
16+
-DpomFile=${2} \
17+
-DrepositoryId=sonatype-nexus-staging \
18+
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
19+
-Dclassifier=${3}
20+
21+
rm ${tf}
22+
}
23+
324
vers=`egrep '^version=' ../gradle.properties | awk -F = '{print $2}'`
25+
base=${HOME}/.m2/repository/org/mozilla
426

527
echo "Deploying ${vers}"
628

7-
pom=maven-pom.xml
8-
jsjar=../buildGradle/libs/rhino-${vers}.jar
9-
echo "Installing ${jsjar}"
10-
srczip=../buildGradle/libs/rhino-${vers}-sources.jar
11-
echo "Sources are ${srczip}"
12-
doczip=../buildGradle/libs/rhino-${vers}-javadoc.jar
13-
echo "Javadoc is ${doczip}"
14-
15-
if [ ! -f $jsjar ]
16-
then
17-
echo "Missing js.jar"
18-
exit 1
19-
fi
20-
21-
if [ ! -f $srczip ]
22-
then
23-
echo "Missing rhino-${vers}-sources.zip. Run \"ant source-zip\"."
24-
exit 2
25-
fi
26-
27-
if [ ! -f $doczip ]
28-
then
29-
echo "Missing javadoc.zip. Run \"ant javadoc\"."
30-
exit 3
31-
fi
29+
rb=${base}/rhino/${vers}
30+
deploy ${rb}/rhino-${vers}.jar maven-pom.xml
31+
deploy ${rb}/rhino-${vers}-sources.jar maven-pom.xml sources
32+
deploy ${rb}/rhino-${vers}-javadoc.jar maven-pom.xml javadoc
3233

33-
mvn gpg:sign-and-deploy-file \
34-
-Dfile=${jsjar} \
35-
-DpomFile=${pom} \
36-
-DrepositoryId=sonatype-nexus-staging \
37-
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/
38-
39-
mvn gpg:sign-and-deploy-file \
40-
-Dfile=${srczip} \
41-
-DpomFile=${pom} \
42-
-DrepositoryId=sonatype-nexus-staging \
43-
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
44-
-Dclassifier=sources
45-
46-
mvn gpg:sign-and-deploy-file \
47-
-Dfile=${doczip} \
48-
-DpomFile=${pom} \
49-
-DrepositoryId=sonatype-nexus-staging \
50-
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
51-
-Dclassifier=javadoc
34+
rb=${base}/rhino-runtime/${vers}
35+
deploy ${rb}/rhino-runtime-${vers}.jar maven-runtime-pom.xml
36+
deploy ${rb}/rhino-runtime-${vers}-sources.jar maven-runtime-pom.xml sources
37+
deploy ${rb}/rhino-runtime-${vers}-javadoc.jar maven-runtime-pom.xml javadoc

src/manifest

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Manifest-Version: 1.0
22
Main-Class: org.mozilla.javascript.tools.shell.Main
3-
Implementation-Version: 1.7.12-SNAPSHOT
4-
Implementation-Title: Mozilla Rhino 1.7.12-SNAPSHOT
3+
Implementation-Version: 1.7.12
4+
Implementation-Title: Mozilla Rhino 1.7.12
55
Implementation-Vendor: Mozilla Foundation
66
Implementation-URL: http://www.mozilla.org/rhino

0 commit comments

Comments
 (0)