Skip to content

Commit 7e36e0f

Browse files
authored
Merge branch 'releasse/v1.23.0' into space-anonymous-user
2 parents af99ee2 + 649eaca commit 7e36e0f

24 files changed

+75
-383
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
push:
1515
branches:
16-
- master
16+
- main
1717
- develop
1818

1919
pull_request:
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- name: github branch
3535
run: |
3636
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -39,7 +39,7 @@ jobs:
3939
BRANCH=${GITHUB_REF##*/}
4040
fi
4141
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
42-
if [ "$BRANCH" == "master" ]; then
42+
if [ "$BRANCH" == "main" ]; then
4343
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
4444
elif [ "$BRANCH" == "develop" ]; then
4545
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
@@ -51,12 +51,12 @@ jobs:
5151
distribution: 'zulu'
5252
java-version: 8
5353
- name: Cache SBT ivy cache
54-
uses: actions/cache@v1
54+
uses: actions/cache@v3
5555
with:
5656
path: ~/.ivy2/cache
5757
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('project/Build.scala') }}
5858
- name: Cache SBT
59-
uses: actions/cache@v1
59+
uses: actions/cache@v3
6060
with:
6161
path: ~/.sbt
6262
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
@@ -85,7 +85,7 @@ jobs:
8585
ports:
8686
- 27017:27017
8787
steps:
88-
- uses: actions/checkout@v3
88+
- uses: actions/checkout@v4
8989
- name: github branch
9090
run: |
9191
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -94,7 +94,7 @@ jobs:
9494
BRANCH=${GITHUB_REF##*/}
9595
fi
9696
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
97-
if [ "$BRANCH" == "master" ]; then
97+
if [ "$BRANCH" == "main" ]; then
9898
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
9999
elif [ "$BRANCH" == "develop" ]; then
100100
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
needs: build
132132
steps:
133-
- uses: actions/checkout@v3
133+
- uses: actions/checkout@v4
134134
- name: github branch
135135
run: |
136136
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -139,7 +139,7 @@ jobs:
139139
BRANCH=${GITHUB_REF##*/}
140140
fi
141141
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
142-
if [ "$BRANCH" == "master" ]; then
142+
if [ "$BRANCH" == "main" ]; then
143143
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
144144
elif [ "$BRANCH" == "develop" ]; then
145145
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
@@ -177,13 +177,13 @@ jobs:
177177
done
178178
rm ${ZIPFILE}
179179
zip -r ${ZIPFILE} ${DIR}
180-
- uses: actions/upload-artifact@v2
180+
- uses: actions/upload-artifact@v4
181181
with:
182182
name: clowder.zip
183183
path: target/universal/clowder-*.zip
184184
- name: Upload files to a GitHub release
185185
if: github.event_name == 'release' && github.event.action == 'created'
186-
uses: svenstaro/upload-release-action@1.1.0
186+
uses: svenstaro/upload-release-action@v2
187187
with:
188188
repo_token: ${{ secrets.GITHUB_TOKEN }}
189189
tag: ${{ github.ref }}
@@ -207,7 +207,7 @@ jobs:
207207
runs-on: ubuntu-latest
208208
needs: build
209209
steps:
210-
- uses: actions/checkout@v3
210+
- uses: actions/checkout@v4
211211
- name: github branch
212212
run: |
213213
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -216,7 +216,7 @@ jobs:
216216
BRANCH=${GITHUB_REF##*/}
217217
fi
218218
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
219-
if [ "$BRANCH" == "master" ]; then
219+
if [ "$BRANCH" == "main" ]; then
220220
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
221221
elif [ "$BRANCH" == "develop" ]; then
222222
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
@@ -237,18 +237,18 @@ jobs:
237237
with:
238238
path: ~/.sbt
239239
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
240-
- name: Set up Python 3.7
241-
uses: actions/setup-python@v1
240+
- name: Set up Python 3.11
241+
uses: actions/setup-python@v5
242242
with:
243-
python-version: 3.7
243+
python-version: 3.11
244244
- name: sbt doc
245245
run: ./sbt doc
246246
env:
247247
BRANCH: ${{ env.GITHUB_BRANCH }}
248248
VERSION: ${{ env.CLOWDER_VERSION }}
249249
BUILDNUMBER: ${{ github.run_number }}
250250
GITSHA1: ${{ github.sha }}
251-
- uses: actions/upload-artifact@v2
251+
- uses: actions/upload-artifact@v4
252252
with:
253253
name: ScalaDoc
254254
path: target/scala-*/api/
@@ -266,7 +266,7 @@ jobs:
266266
cd doc/src/sphinx/
267267
python -m pip install -r requirements.txt
268268
make html epub
269-
- uses: actions/upload-artifact@v2
269+
- uses: actions/upload-artifact@v4
270270
with:
271271
name: HTML Documentation
272272
path: doc/src/sphinx/_build/html
@@ -279,13 +279,13 @@ jobs:
279279
key: ${{ secrets.SCP_KEY }}
280280
files: "doc/src/sphinx/_build/html/*"
281281
target: "CATS/${{ env.CLOWDER_VERSION }}/documentation/sphinx"
282-
- uses: actions/upload-artifact@v2
282+
- uses: actions/upload-artifact@v4
283283
with:
284284
name: EPUB Documentation
285285
path: doc/src/sphinx/_build/epub/Clowder.epub
286286
- name: Upload files to a GitHub release
287287
if: github.event_name == 'release' && github.event.action == 'created'
288-
uses: svenstaro/upload-release-action@1.1.0
288+
uses: svenstaro/upload-release-action@v2
289289
with:
290290
repo_token: ${{ secrets.GITHUB_TOKEN }}
291291
tag: ${{ github.ref }}

.github/workflows/docker.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Docker
55
# and would not set the right version flags.
66

77
# This will run when:
8-
# - when new code is pushed to master/develop to push the tags
8+
# - when new code is pushed to main/develop to push the tags
99
# latest and develop
1010
# - when a pull request is created and updated to make sure the
1111
# Dockerfile is still valid.
@@ -16,14 +16,14 @@ name: Docker
1616
on:
1717
push:
1818
branches:
19-
- master
19+
- main
2020
- develop
2121

2222
pull_request:
2323

24-
# Certain actions will only run when this is the master repo.
24+
# Certain actions will only run when this is the main repo.
2525
env:
26-
MASTER_REPO: clowder-framework/clowder
26+
MAIN_REPO: clowder-framework/clowder
2727
DOCKERHUB_ORG: clowder
2828

2929
jobs:
@@ -64,7 +64,7 @@ jobs:
6464
PLATFORM: "linux/amd64"
6565

6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868

6969
# calculate some variables that are used later
7070
- name: variable setup
@@ -77,7 +77,7 @@ jobs:
7777
BRANCH=${GITHUB_REF##*/}
7878
fi
7979
80-
if [ "$BRANCH" == "master" ]; then
80+
if [ "$BRANCH" == "main" ]; then
8181
version="$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')"
8282
tags="latest"
8383
oldversion=""
@@ -115,11 +115,11 @@ jobs:
115115
116116
# setup docker build
117117
- name: Set up QEMU
118-
uses: docker/setup-qemu-action@v2
118+
uses: docker/setup-qemu-action@v3
119119

120120
- name: Set up Docker Buildx
121121
id: buildx
122-
uses: docker/setup-buildx-action@v2
122+
uses: docker/setup-buildx-action@v3
123123

124124
- name: Inspect Builder
125125
run: |
@@ -132,13 +132,13 @@ jobs:
132132
# login to registries
133133
- name: Login to DockerHub
134134
if: env.dockerhub != ''
135-
uses: docker/login-action@v2
135+
uses: docker/login-action@v3
136136
with:
137137
username: ${{ secrets.DOCKERHUB_USERNAME }}
138138
password: ${{ secrets.DOCKERHUB_PASSWORD }}
139139

140140
- name: Login to GitHub Container Registry
141-
uses: docker/login-action@v2
141+
uses: docker/login-action@v3
142142
with:
143143
registry: ghcr.io
144144
username: ${{ github.actor }}
@@ -147,7 +147,7 @@ jobs:
147147
# build the clowder docker images
148148
- name: Build and push ${{ matrix.IMAGE }}-build
149149
if: matrix.IMAGE == 'clowder'
150-
uses: docker/build-push-action@v2
150+
uses: docker/build-push-action@v6
151151
with:
152152
push: true
153153
context: ${{ matrix.FOLDER }}
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Build and push ${{ matrix.IMAGE }}-runtime
166166
if: matrix.IMAGE == 'clowder'
167-
uses: docker/build-push-action@v2
167+
uses: docker/build-push-action@v6
168168
with:
169169
push: true
170170
context: ${{ matrix.FOLDER }}
@@ -182,7 +182,7 @@ jobs:
182182
# build the other docker images
183183
- name: Build and push ${{ matrix.IMAGE }}
184184
if: matrix.IMAGE != 'clowder'
185-
uses: docker/build-push-action@v2
185+
uses: docker/build-push-action@v6
186186
with:
187187
push: true
188188
context: ${{ matrix.FOLDER }}
@@ -198,10 +198,10 @@ jobs:
198198
199199
# update README at DockerHub
200200
- name: Docker Hub Description
201-
if: env.dockerhub != '' && matrix.README != '' && github.event_name == 'push' && github.repository == env.MASTER_REPO && env.BRANCH == 'master'
202-
uses: peter-evans/dockerhub-description@v2
203-
env:
204-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
205-
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
206-
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
207-
README_FILEPATH: ${{ matrix.README }}
201+
if: env.dockerhub != '' && matrix.README != '' && github.event_name == 'push' && github.repository == env.MAIN_REPO && env.BRANCH == 'main'
202+
uses: peter-evans/dockerhub-description@v4
203+
with:
204+
username: ${{ secrets.DOCKERHUB_USERNAME }}
205+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
206+
repository: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
207+
readme-filepath : ${{ matrix.README }}

.github/workflows/swagger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: swagger
22

33
# This will run when:
4-
# - when new code is pushed to master/develop to make sure the
4+
# - when new code is pushed to main/develop to make sure the
55
# code does compile.
66
# - when a pull request is created and updated to make sure the
77
# code does compile.
88
on:
99
push:
1010
branches:
11-
- master
11+
- main
1212
- develop
1313

1414
pull_request:
@@ -20,7 +20,7 @@ jobs:
2020
lint:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

2525
- name: openapi-lint
2626
uses: mbowman100/swagger-validator-action@master

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111
- Fixed `NoSuchElementException` in spaces listing page when user is not defined. The error occurred when calling `user.get.id` on an undefined user in the spaces ownership dropdown. Added proper user existence checks in `listSpaces.scala.html` and `miniList.scala.html` templates.
12+
- Removed refrences to repo.typesafe.com from sbt-launch.jar and build.scala
13+
14+
### Removed
15+
- Removed iRods integration and dependencies. The iRods file storage service and plugin have been completely removed from the codebase. Users who were using iRods for file storage will need to configure an alternative storage backend (filesystem, MongoDB GridFS, or AWS S3).
1216

1317
## 1.22.1 - 2023-11-10
1418

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ below. By participating in this project, you agree to abide by the [code of cond
55
Before your code can be accepted, you will have to sign a [CLA](https://clowderframework.org/pdf/Clowder-CLA.pdf)
66
and mail it to [email protected].
77

8-
Most of the core development happens on [NCSA Bitbucket][bitbucket]. The `master` and `develop` branches are pushed to
8+
Most of the core development happens on [NCSA Bitbucket][bitbucket]. The `` and `develop` branches are pushed to
99
[GitHub][github] nightly.
1010

1111
We encourage contributors to create an account on [NCSA Bitbucket][bitbucket] and make pull requests there. We also accept

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ----------------------------------------------------------------------
22
# BUILD CLOWDER DIST
33
# ----------------------------------------------------------------------
4-
FROM openjdk:8-jdk-bullseye as clowder-build
4+
FROM openjdk:8-jdk-bullseye AS clowder-build
55

66
ARG BRANCH="unknown"
77
ARG VERSION="unknown"
@@ -40,7 +40,7 @@ RUN rm -rf target/universal/clowder-*.zip clowder clowder-* \
4040
# ----------------------------------------------------------------------
4141
# BUILD CLOWDER
4242
# ----------------------------------------------------------------------
43-
FROM openjdk:8-jre-bullseye as clowder-runtime
43+
FROM openjdk:8-jre-bullseye AS clowder-runtime
4444

4545
# environemnt variables
4646
ARG BRANCH="unknown"

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Next we install the script that will install or update clowder.
8585
cat > /home/browndog/update-clowder.sh << EOF
8686
#!/bin/bash
8787
88-
# CATS-WWW (master) is the main branch for this server
88+
# CATS-WWW () is the main branch for this server
8989
# CATS-WWW1 (develop) if you want the latest version
9090
clowder_BRANCH=${clowder_BRANCH:-"CATS-WWW1"}
9191

app/controllers/Spaces.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import org.joda.time.DateTime
77
import play.api.data.Forms._
88
import play.api.data.{Form, Forms}
99
import play.api.i18n.Messages
10+
import play.api.templates.HtmlFormat
1011
import play.api.{Logger, Play}
1112
import securesocial.core.providers.{Token, UsernamePasswordProvider}
1213
import services._
@@ -411,7 +412,7 @@ class Spaces @Inject() (spaces: SpaceService, users: UserService, events: EventS
411412
formData => {
412413
if (Permission.checkPermission(user, Permission.CreateSpace)) {
413414
Logger.debug("Creating space " + formData.name)
414-
val newSpace = ProjectSpace(name = formData.name, description = formData.description,
415+
val newSpace = ProjectSpace(name = HtmlFormat.escape(formData.name).toString(), description = HtmlFormat.escape(formData.description).toString(),
415416
created = new Date, creator = userId, homePage = formData.homePage,
416417
logoURL = formData.logoURL, bannerURL = formData.bannerURL,
417418
collectionCount = 0, datasetCount = 0, fileCount = 0, userCount = 0, spaceBytes = 0, metadata = List.empty,

0 commit comments

Comments
 (0)