Skip to content
Snippets Groups Projects
Commit e3ca8659 authored by uhensler's avatar uhensler
Browse files

OO-2916: Resolve issues from merging

parent dbcafa6a
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,7 @@ public class AuthHelper { ...@@ -271,7 +271,7 @@ public class AuthHelper {
} }
} }
Collection<String> supportedLanguages = I18nModule.getEnabledLanguageKeys(); Collection<String> supportedLanguages = CoreSpringFactory.getImpl(I18nModule.class).getEnabledLanguageKeys();
if ( locale == null || ! supportedLanguages.contains(locale.toString()) ) { if ( locale == null || ! supportedLanguages.contains(locale.toString()) ) {
locale = I18nModule.getDefaultLocale(); locale = I18nModule.getDefaultLocale();
} }
...@@ -366,7 +366,7 @@ public class AuthHelper { ...@@ -366,7 +366,7 @@ public class AuthHelper {
wasGuest = usess.getRoles().isGuestOnly(); wasGuest = usess.getRoles().isGuestOnly();
} }
String lang = I18nManager.getInstance().getLocaleKey(ureq.getLocale()); String lang = CoreSpringFactory.getImpl(I18nModule.class).getLocaleKey(ureq.getLocale());
HttpSession session = ureq.getHttpReq().getSession(false); HttpSession session = ureq.getHttpReq().getSession(false);
// next line fires a valueunbound event to UserSession, which does some // next line fires a valueunbound event to UserSession, which does some
// stuff on logout // stuff on logout
......
...@@ -114,4 +114,12 @@ public class Card2BrainManagerImpl implements Card2BrainManager { ...@@ -114,4 +114,12 @@ public class Card2BrainManagerImpl implements Card2BrainManager {
return card2BrainValidationResult; return card2BrainValidationResult;
} }
@Override
public String parseAlias(String alias) {
String parsedString = alias.endsWith("/editor")? alias.substring(0, alias.length()-7): alias;
parsedString = parsedString.replace("https://card2brain.ch/box/", "");
parsedString = parsedString.replace(" ", "_");
return parsedString;
}
} }
...@@ -362,20 +362,12 @@ help.course.softkey=OLAT::help-course_de.zip ...@@ -362,20 +362,12 @@ help.course.softkey=OLAT::help-course_de.zip
######################################################################## ########################################################################
# OLAT technical settings # OLAT technical settings
######################################################################## ########################################################################
# OLAT instance ID (effects a unique namespace for addressable items) # OLAT instance ID (effects a unqiue namesapce for addressable items)
# ID should be no longer than 10 characters! # ID should be no longer than 10 characters!
instance.id=myopenolat instance.id=myopenolat
# Issuer of the OpenOLAT users.
# The issuer is the entity that issues a set of claims. An issuer
# identifier is a case sensitive URL using the https scheme that contains
# scheme, host, and optionally, port number and path components and no
# query or fragment components.
instance.issuer.identifier=https://${instance.id}.openolat.org
# by creating a theme under webapp/WEB-INF/static/themes you can # by creating a theme under webapp/WEB-INF/static/themes you can
# customize the OLAT application to your liking (see the example # customize the OLAT application to your liking (see the example
# theme for further information. # theme for futher information.
# you can also configure a theme via the admin GUI which takes precedence # you can also configure a theme via the admin GUI which takes precedence
layout.theme=light layout.theme=light
layout.coursetemplates.blacklist= layout.coursetemplates.blacklist=
...@@ -545,6 +537,7 @@ allow.cross.origin.domain.values=*,www.frentix.com ...@@ -545,6 +537,7 @@ allow.cross.origin.domain.values=*,www.frentix.com
######################################################################## ########################################################################
mathjax.cdn=//mathjax.openolat.org/mathjax/2.7-latest/ mathjax.cdn=//mathjax.openolat.org/mathjax/2.7-latest/
mathjax.config=TeX-AMS-MML_HTMLorMML
######################################################################## ########################################################################
# Database settings # Database settings
...@@ -765,53 +758,150 @@ restapi.ips.system.values=192.168.1.200,192.168.1.201 ...@@ -765,53 +758,150 @@ restapi.ips.system.values=192.168.1.200,192.168.1.201
statistics.cronjob.expression=0 10 5 * * ? statistics.cronjob.expression=0 10 5 * * ?
######################################################################## ########################################################################
# Security # Shibboleth
######################################################################## ########################################################################
shibboleth.enable=false #The auth provider you set to default will be the one you see when you access the loginpage, alternate providers are shows as links below
# set the name of the Shibboleth attribute used to identify authorized users #enable and or set the basic login provider (username/password) on the loginpage active and or default
shibboleth.defaultUID=defaultUID olatprovider.enable=true
# the Authentication and Authorization Infrastructure (AAI) is a olatprovider.default=true
# federated identity management system used in Switzerland that
# supports the sending of a locale code within an AAI request using
# a key as named in the language.param setting
language.enable=false
language.param=YOUR_PARAM_NAME
# if you change this all current users will no longer be able to login! # if you change this all current users will no longer be able to login!
default.auth.provider.identifier=OLAT default.auth.provider.identifier=OLAT
shibboleth.enable=false
#enable and or set the generic shib login provider on the loginpage active and or default
shibbolethGeneric.enable=false
shibbolethGeneric.default=false
#enable and or set the custom uzh shib login provider on the loginpage active and or default
shibbolethUZH.enable=false
shibbolethUZH.default=false
#these settings are university of zurich specific #these settings are university of zurich specific
shibboleth.wayfSPEntityID= shibboleth.wayfSPEntityID=
shibboleth.wayfSPHandlerURL= shibboleth.wayfSPHandlerURL=
shibboleth.wayfSPSamlDSURL= shibboleth.wayfSPSamlDSURL=
shibboleth.wayfReturnUrl= shibboleth.wayfReturnUrl=
shibboleth.wayfReturnMobileUrl=$shibboleth.wayfReturnUrl shibboleth.wayfReturnMobileUrl=$shibboleth.wayfReturnUrl
#you can manually add additional IDP servers. See org/olat/portal/shiblogin/_content/portlet.html
#you can manuall add additional IDP servers. See org/olat/portal/shiblogin/_content/portlet.html
#for an example #for an example
shibboleth.wayf.additionalIDPs= shibboleth.wayf.additionalIDPs=
#The auth provider you set to default will be the one you see when you access the loginpage, alternate providers are shows as links below
#enable and or set the basic login provider (username/password) on the loginpage active and or default
olatprovider.enable=true
olatprovider.default=true
#enable and or set the custom uzh shib login provider on the loginpage active and or default # set the name of the Shibboleth attribute used to identify authorized users
shibbolethUZH.enable=false shibboleth.uid.shib=
shibbolethUZH.default=false shibboleth.uid.handler=
#enable and or set the generic shib login provider on the loginpage active and or default #Shibboleth attribute to use if a user logs in the first time.
shibbolethGeneric.enable=false shibboleth.preferred.language.shib=
shibbolethGeneric.default=false shibboleth.preferred.language.handler=
# Issuer of the Shibboleth credidentals. You can use a template string. #Apply author role automatically to users according to the value of a Shibboleth attribute.
# The placeholder %s will be replaced with the value of the attribute. #The contains parameter can have multiple values separated by commas. The value of the
# The issuer is the entity that issues a set of claims. An issuer #Shibboleth attribute has to match one value of the contains parameter to apply the author role.
# identifier is a case sensitive URL using the https scheme that contains shibboleth.role.mapping.author.enable=false
# scheme, host, and optionally, port number and path components and no shibboleth.role.mapping.author.shib=
# query or fragment components. shibboleth.role.mapping.author.contains=
shibboleth.issuer.attribute=swissEduPersonHomeOrganization
shibboleth.issuer.identifier.template=https://%s #Define which Shibboleth attributes are mapped to OLAT user properties
#and how the attributes are mapped. Use a handler to transform the from
#Shibboleth delivered value to the desired form. If no handler is
#configured the DoNothing handler is used. Set delete to false to avoid
#the deletion of the user property value if Shibboleth delivers no value.
#The mandatory user properties are never deleted by the synchronization.
shibboleth.user.mapping.handler.values=DoNothing,FirstValue,SchacGender
#These attributes are mandatory to create new users.
shibboleth.user.mapping.email.shib=
shibboleth.user.mapping.email.handler=
shibboleth.user.mapping.first.name.shib=
shibboleth.user.mapping.first.name.handler=
shibboleth.user.mapping.last.name.shib=
shibboleth.user.mapping.last.name.handler=
#Further attributes may be mapped if wanted.
shibboleth.user.mapping.key1.shib=
shibboleth.user.mapping.key1.olat=
shibboleth.user.mapping.key1.handler=
shibboleth.user.mapping.key1.delete=
shibboleth.user.mapping.key2.shib=
shibboleth.user.mapping.key2.olat=
shibboleth.user.mapping.key2.handler=
shibboleth.user.mapping.key2.delete=
shibboleth.user.mapping.key3.shib=
shibboleth.user.mapping.key3.olat=
shibboleth.user.mapping.key3.handler=
shibboleth.user.mapping.key3.delete=
shibboleth.user.mapping.key4.shib=
shibboleth.user.mapping.key4.olat=
shibboleth.user.mapping.key4.handler=
shibboleth.user.mapping.key4.delete=
shibboleth.user.mapping.key5.shib=
shibboleth.user.mapping.key5.olat=
shibboleth.user.mapping.key5.handler=
shibboleth.user.mapping.key5.delete=
shibboleth.user.mapping.key6.shib=
shibboleth.user.mapping.key6.olat=
shibboleth.user.mapping.key6.handler=
shibboleth.user.mapping.key6.delete=
shibboleth.user.mapping.key7.shib=
shibboleth.user.mapping.key7.olat=
shibboleth.user.mapping.key7.handler=
shibboleth.user.mapping.key7.delete=
shibboleth.user.mapping.key8.shib=
shibboleth.user.mapping.key8.olat=
shibboleth.user.mapping.key8.handler=
shibboleth.user.mapping.key8.delete=
shibboleth.user.mapping.key9.shib=
shibboleth.user.mapping.key9.olat=
shibboleth.user.mapping.key9.handler=
shibboleth.user.mapping.key9.delete=
shibboleth.user.mapping.key10.shib=
shibboleth.user.mapping.key10.olat=
shibboleth.user.mapping.key10.handler=
shibboleth.user.mapping.key10.delete=
shibboleth.user.mapping.key11.shib=
shibboleth.user.mapping.key11.olat=
shibboleth.user.mapping.key11.handler=
shibboleth.user.mapping.key11.delete=
shibboleth.user.mapping.key12.shib=
shibboleth.user.mapping.key12.olat=
shibboleth.user.mapping.key12.handler=
shibboleth.user.mapping.key12.delete=
shibboleth.user.mapping.key13.shib=
shibboleth.user.mapping.key13.olat=
shibboleth.user.mapping.key13.handler=
shibboleth.user.mapping.key13.delete=
shibboleth.user.mapping.key14.shib=
shibboleth.user.mapping.key14.olat=
shibboleth.user.mapping.key14.handler=
shibboleth.user.mapping.key14.delete=
shibboleth.user.mapping.key15.shib=
shibboleth.user.mapping.key15.olat=
shibboleth.user.mapping.key15.handler=
shibboleth.user.mapping.key15.delete=
shibboleth.user.mapping.key16.shib=
shibboleth.user.mapping.key16.olat=
shibboleth.user.mapping.key16.handler=
shibboleth.user.mapping.key16.delete=
shibboleth.user.mapping.key17.shib=
shibboleth.user.mapping.key17.olat=
shibboleth.user.mapping.key17.handler=
shibboleth.user.mapping.key17.delete=
shibboleth.user.mapping.key18.shib=
shibboleth.user.mapping.key18.olat=
shibboleth.user.mapping.key18.handler=
shibboleth.user.mapping.key18.delete=
shibboleth.user.mapping.key19.shib=
shibboleth.user.mapping.key19.olat=
shibboleth.user.mapping.key19.handler=
shibboleth.user.mapping.key19.delete=
shibboleth.user.mapping.key20.shib=
shibboleth.user.mapping.key20.olat=
shibboleth.user.mapping.key20.handler=
shibboleth.user.mapping.key20.delete=
# The attribute translator can be used to simplify ugly shibboleth attribute identifiers and mask them with nicer names.
# If unsure, use the emptyAttributeTranslator to not mask any shib attributes. The switchAttributeTranslator should only
# be used when participating in SWTICH AAI.
shibboleth.attribute.translator=emptyAttributeTranslator
shibboleth.attribute.translator.values=emptyAttributeTranslator,userMappingAttributeTranslator,switchAttributeTranslator
######################################################################## ########################################################################
# Clustering settings # Clustering settings
...@@ -859,10 +949,10 @@ hibernate.caching.use.query.cache=true ...@@ -859,10 +949,10 @@ hibernate.caching.use.query.cache=true
hibernate.use.second.level.cache=true hibernate.use.second.level.cache=true
hibernate.connection.timeout=120 hibernate.connection.timeout=120
##### ########################################
# LDAP configuration parameters (optional) # LDAP configuration parameters (optional)
# for advanced config options see webapp/WEB-INF/src/serviceconfig/org/olat/ldap/_spring/olatextconfig.xml # for advanced config options see webapp/WEB-INF/src/serviceconfig/org/olat/ldap/_spring/olatextconfig.xml
##### ########################################
ldap.enable=false ldap.enable=false
# is ldap your default provider? true or false # is ldap your default provider? true or false
ldap.default=false ldap.default=false
...@@ -949,12 +1039,6 @@ ldap.attributename.useridentifyer=sAMAccountName ...@@ -949,12 +1039,6 @@ ldap.attributename.useridentifyer=sAMAccountName
ldap.attributename.email=mail ldap.attributename.email=mail
ldap.attributename.firstName=givenName ldap.attributename.firstName=givenName
ldap.attributename.lastName=sn ldap.attributename.lastName=sn
# The issuer of the LDAP system.
# The issuer is the entity that issues a set of claims. An issuer
# identifier is a case sensitive URL using the https scheme that contains
# scheme, host, and optionally, port number and path components and no
# query or fragment components.
ldap.issuer.identifier=
# Attribute used as username to log in. Note: the configured login attribute MUST be one of the mapped attributes below, e.g. genericTextProperty1 # Attribute used as username to log in. Note: the configured login attribute MUST be one of the mapped attributes below, e.g. genericTextProperty1
# If the login attribute should not be visible in OO, then disable the OO user property in all contexts. # If the login attribute should not be visible in OO, then disable the OO user property in all contexts.
ldap.login.attribute=${ldap.attributename.useridentifyer} ldap.login.attribute=${ldap.attributename.useridentifyer}
...@@ -1055,8 +1139,8 @@ ldap.learningResourceManagerRoleValue= ...@@ -1055,8 +1139,8 @@ ldap.learningResourceManagerRoleValue=
# Build properties # Build properties
##### #####
application.name=OpenOLAT application.name=OpenOLAT
build.version=12.0.0i build.version=12.2a
build.identifier=openolat120i-dev build.identifier=openolat122a-dev
build.repo.revision=local-devel build.repo.revision=local-devel
##### #####
...@@ -1089,6 +1173,17 @@ resource.accesscontrol.home.overview=true ...@@ -1089,6 +1173,17 @@ resource.accesscontrol.home.overview=true
method.token.enabled=true method.token.enabled=true
method.free.enabled=true method.free.enabled=true
method.paypal.enabled=false method.paypal.enabled=false
method.auto.enabled=false
# Properties to configure the Shibboleth implementation of the auto access method
# attributes to use for search (comma separated)
method.auto.shib.identifiers.values=internalId,externalId,externalRef
method.auto.shib.identifiers=
# Name of the Shibboleth attributes with the keys
method.auto.shib.shib=
# Splitter to split the parsed value in keys
method.auto.shib.splitter.values=Semicolon
method.auto.shib.splitter=
######################################## ########################################
# Paypal (need a business account) # Paypal (need a business account)
...@@ -1276,7 +1371,7 @@ video.site.enable=false ...@@ -1276,7 +1371,7 @@ video.site.enable=false
video.transcoding.enabled=false video.transcoding.enabled=false
# The transcoding process can run locally in s separate process using HandBrake. In that # The transcoding process can run locally in s separate process using HandBrake. In that
# case, the binary "HandBrakeCLI" must be installed in your system and available to the # case, the binary "HandBrakeCLI" must be installed in your system and available to the
# java environment of your system. # java environment of your system. Only HandBrakeCLI in version > 1 is supported.
# Alternatively, you can disable local transcoding and implement a shell script that runs # Alternatively, you can disable local transcoding and implement a shell script that runs
# on another server which reads from the o_vid_transcoding table to separate transcoding # on another server which reads from the o_vid_transcoding table to separate transcoding
# from the main server. For larger installations it is recommendet to run the transcoding # from the main server. For larger installations it is recommendet to run the transcoding
...@@ -1286,11 +1381,17 @@ video.transcoding.local=true ...@@ -1286,11 +1381,17 @@ video.transcoding.local=true
video.transcoding.taskset.cpuconfig=0,1 video.transcoding.taskset.cpuconfig=0,1
video.transcoding.taskset.cpuconfig.values=0,1 to indicate usage of 2 cores, set empty value to disable taskset (e.g. on osx not available) video.transcoding.taskset.cpuconfig.values=0,1 to indicate usage of 2 cores, set empty value to disable taskset (e.g. on osx not available)
# List of transcoding versions to be generated by the transcoder # List of transcoding versions to be generated by the transcoder
video.transcoding.resolutions=1080,720,480,360 video.transcoding.resolutions=1080,720,480
video.transcoding.resolutions.values=2160,1080,720,480,360,240 video.transcoding.resolutions.values=2160,1080,720,480
# The preferred resolution if multiple video versions are available and the user has no # The preferred resolution if multiple video versions are available and the user has no
# customized setting. Should be a values from video.transcoding.resolutions # customized setting. Should be a values from video.transcoding.resolutions
video.transcoding.resolution.preferred=720 video.transcoding.resolution.preferred=720
# Which profile should be used while transcoding. "Fast" delivers better quality, but taks
# roughly twice the time for transcoding. "Fast" has about one third larger file size. In
# short: "Fast" for better quality at the cost or resources, "Very Fast" for smaller files
# at the cost of quality.
video.transcoding.profile=Very Fast
video.transcoding.profile.values=Fast,Very Fast
# Where to store transcoded versions. This can be located on another path in case the # Where to store transcoded versions. This can be located on another path in case the
# transcoding service is working on another physical server or you just want it to use # transcoding service is working on another physical server or you just want it to use
# another (cheap) disk. By default it is also located in the olatdata dir. # another (cheap) disk. By default it is also located in the olatdata dir.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment