Skip to content

Commit c9470b7

Browse files
authored
Merge pull request diffblue#375 from diffblue/improved_dspace_benchmark_install_guide
SEC-331: Improved DSpace install guide.
2 parents 3d57426 + 7285873 commit c9470b7

File tree

1 file changed

+39
-17
lines changed

1 file changed

+39
-17
lines changed

benchmarks/GENUINE/README.txt

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,46 @@ Contributors: 107
6161
Install guide for Ubuntu:
6262

6363
1. Open a terminal in the directory of this readme file and clone DSpace:
64-
git clone https://github.com/DSpace/DSpace
65-
2. Enter the directory "DSpace" and type the following command:
64+
git clone https://github.com/DSpace/DSpace
65+
2. (Optional) Checkout commit:
66+
git checkout ed7d2980e264901bb60c63da183d620d49772f3e
67+
and in the file:
68+
<this-dir>/DSpace/build.properties
69+
update the variable 'dspace.install.dir' as follows:
70+
dspace.install.dir=<this-dir>/DSpace/__dist__
71+
where <this-dir> a full pathname of the directory of this README.txt file.
72+
The checkout will give you a version with a fixed XSS issue. In order to
73+
return the XSS issue back comment out lines 94-108 in file:
74+
<this-dir>/DSpace/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/AbstractBrowserServlet.java
75+
(NOTE: you can also check out the previous commit; but was not tested)
76+
And continue with step 4 (i.e. skip 3).
77+
3. Copy file:
78+
<this-dir>/DSpace/dspace/config/local.cfg.EXAMPLE
79+
to:
80+
<this-dir>/DSpace/dspace/config/local.cfg
81+
and set there the variable 'dspace.dir' as follows:
82+
dspace.dir=<this-dir>/DSpace/__dist__
83+
where <this-dir> a full pathname of the directory of this README.txt file.
84+
4. Enter the directory '<this-dir>/DSpace' and type the following command:
6685
mvn clean package
67-
68-
The built binaries will be stored in:
69-
"dspace",
70-
"dspace-api",
71-
"dspace-jspui",
72-
"dspace-oai",
73-
"dspace-rdf",
74-
"dspace-rest",
75-
"dspace-services",
76-
"dspace-solr",
77-
"dspace-sword",
78-
"dspace-swordv2",
79-
"dspace-xmlui",
80-
"dspace-xmlui-mirage2"
81-
86+
5. Enter the directory '<this-dir>/DSpace/dspace/target/dspace-installer'
87+
and type the following commands:
88+
ant init_installation
89+
ant init_configs
90+
ant install_code
91+
ant copy_webapps
92+
93+
The built webapps of DSpace will be installed under directory:
94+
<this-dir>/DSpace/__dist__/webapps
95+
96+
Here are commits where a XSS bug was fixed:
97+
- ed7d2980e264901bb60c63da183d620d49772f3e
98+
- [DS-2044] fix cross-site scripting vulnerability and minor related issue
99+
(verbose error output, avoid NPE on JSP during an attack)
100+
- There are modified 2 java sources and 4 JSP sources
101+
- 5aa9ce16f07450324bd3302b5e3147915795cc92
102+
- DS-1702 add code to prevent XSS attach on recent submission
103+
- There are modified 3 JSP sources
82104

83105
(3) encuestame
84106
--------------

0 commit comments

Comments
 (0)