-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3693 from IQSS/v4.6.1
V4.6.1
- Loading branch information
Showing
245 changed files
with
20,008 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@startuml | ||
actor user | ||
participant DataverseUserPage as page | ||
participant "provider: AuthenticationProvider" as prv | ||
participant AuthenticationServiceBean as authSvc | ||
user --> page: HTTP GET | ||
== page init == | ||
... | ||
page -> authSvc : lookupProvider(session.user) | ||
activate authSvc | ||
page <-- authSvc: provider | ||
deactivate authSvc | ||
... | ||
|
||
== Can Update User? == | ||
page -> prv: isUserInfoUpdateAllowed() | ||
activate prv | ||
page <-- prv: true/false | ||
deactivate prv | ||
... | ||
|
||
== Save User == | ||
user --> page: save() | ||
page -> page: udi = createUserDisplayInfo() | ||
page -> prv: updateUserInfo( udi ) | ||
page -> authSvc: updateAuthentictedUser( session.user, udi ) | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
doc/sphinx-guides/source/_static/installation/files/etc/shibboleth/shibAuthProvider.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"id":"shib", | ||
"factoryAlias":"shib", | ||
"enabled":true | ||
} |
8 changes: 8 additions & 0 deletions
8
doc/sphinx-guides/source/_static/installation/files/root/auth-providers/github.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id":"github", | ||
"factoryAlias":"oauth2", | ||
"title":"GitHub", | ||
"subtitle":"", | ||
"factoryData":"type: github | userEndpoint: NONE | clientId: FIXME | clientSecret: FIXME", | ||
"enabled":true | ||
} |
8 changes: 8 additions & 0 deletions
8
doc/sphinx-guides/source/_static/installation/files/root/auth-providers/google.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id":"google", | ||
"factoryAlias":"oauth2", | ||
"title":"Google", | ||
"subtitle":"", | ||
"factoryData":"type: google | userEndpoint: NONE | clientId: FIXME | clientSecret: FIXME", | ||
"enabled":true | ||
} |
8 changes: 8 additions & 0 deletions
8
doc/sphinx-guides/source/_static/installation/files/root/auth-providers/orcid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id":"orcid", | ||
"factoryAlias":"oauth2", | ||
"title":"ORCID", | ||
"subtitle":"", | ||
"factoryData":"type: orcid | userEndpoint: https://api.orcid.org/v1.2/{ORCID}/orcid-profile | clientId: FIXME | clientSecret: FIXME", | ||
"enabled":true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
# EBJ timers sometimes cause problems; utility to clear generated directories and database rows | ||
|
||
# assumes this script is being run as root, and that the postgres user had passwordless | ||
# access to the database (local sockets, or appropriate environmental variables). | ||
|
||
# will restart glassfish if it's stopped; comment out the `start-domain` command at the end | ||
# if you'd like to avoid that. | ||
|
||
# directory where glassfish is installed | ||
GLASSFISH_DIR=/usr/local/glassfish4 | ||
|
||
# directory within glassfish (defaults) | ||
DV_DIR=${GLASSFISH_DIR}/glassfish/domains/domain1 | ||
|
||
# name of dataverse database | ||
DV_DB=dvndb | ||
|
||
# OS user for the database | ||
DB_USER=postgres | ||
|
||
# stop the glassfish domain (generates a warning if glassfish is stopped) | ||
${GLASSFISH_DIR}/bin/asadmin stop-domain | ||
|
||
rm -rf ${GLASSFISH_DIR}/${DV_DIR}/generated/ | ||
rm -rf ${GLASSFISH_DIR}/${DV_DIR}/osgi-cache/felix | ||
|
||
sudo -u ${DB_USER} psql ${DV_DB} -c 'delete from "EJB__TIMER__TBL"'; | ||
|
||
# restart the domain (also generates a warning if glassfish is stopped) | ||
${GLASSFISH_DIR}/bin/asadmin start-domain | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ Contents: | |
harvestserver | ||
metadataexport | ||
timers | ||
troubleshooting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. role:: fixedwidthplain | ||
|
||
Troubleshooting | ||
=============== | ||
|
||
.. contents:: :local: | ||
|
||
This new (as of v.4.6) section of the Admin guide is for tips on how to diagnose and fix system problems. | ||
|
||
Deployment fails, "EJB Timer Service not available" | ||
--------------------------------------------------- | ||
|
||
Sometimes the Dataverse application fails to deploy, or Glassfish fails to restart once the application is deployed, with the following error message: :fixedwidthplain:`"remote failure: Error occurred during deployment: Exception while loading the app : EJB Timer Service is not available. Please see server.log for more details."` | ||
|
||
We don't know what's causing this issue, but here's a known workaround: | ||
|
||
- Stop Glassfish; | ||
|
||
- Remove the ``generated`` and ``osgi-cache`` directories; | ||
|
||
- Delete all the rows from the ``EJB__TIMER__TBL`` table in the database; | ||
|
||
- Start Glassfish | ||
|
||
The shell script below performs the steps above. | ||
Note that it may or may not work on your system, so it is provided as an example only, downloadable :download:`here </_static/util/clear_timer.sh>`. Aside from the configuration values that need to be changed to reflect your environment (the Glassfish directory, name of the database, etc.) the script relies on the database being configured in a certain way for access. (See the comments in the script for more information) | ||
|
||
.. literalinclude:: ../_static/util/clear_timer.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.