Invitation sites des utilisateurs externes (4.0.c)

cancel
Showing results for 
Search instead for 
Did you mean: 
jvanluyten
Member II

Invitation sites des utilisateurs externes (4.0.c)

Bonjour à tous,

Cela fait plusieurs jours que je teste une migration de la 3.3 vers la 4.0, après avoir lutter un peu j'ai reussi a migrer les données et activer toutes les fonctions que je souhaitais (Synchro et auth via ldap,sharepoint, gdoc, CIFS via ntlm)

Notre alfresco est déployé sur une debian en utilisant l'installateur fournit sur http://dev.alfresco.com/downloads/nightly/dist/alfresco-community-4.0.c-installer-linux-x64.bin

J'utilise la nightly 4.0.c car sur la 4.0.b les sites crée via sharepoint sont corrompus (il manque un '}' dans la configuration du tableau de bord) ce qui a été corrigé en 4.0.c.

Mon soucis concerne l'invitation des utilisateurs externes, j'ai deux problemes distincts :

1 - Probleme d'url 

Lorsque j'invite un nouvel utilisateur depuis Share (avec le formulaire nom-prenom-email), le mail est bien envoyé mais les urls sont erronées :

http://*****:8081/sharepage/accept-invite?inviteId=activiti$1494&inviteeUserName=test_u&siteShortNam...

http://*****:8081/sharepage/reject-invite?inviteId=activiti$1494&inviteeUserName=test_u&siteShortNam...

Il manque un "/" entre "share" et "page".
Lorsque j'invite un utilisateur existant dans le LDAP (donc en utilisant la recherche), les urls sont correctes, c'est la ou je ne comprend pas d'ou peut venir le problème.

2 - Les utilisateurs externes ne peuvent pas se logger.

Si j'utilise l'url d'acceptation en la corrigeant, la tache se deroule et l'utilisateur externe apparait bien dans les membres du Site. Mais il est impossible de se logger en utilisant les identifiants fournit.

Dans le navigateur de noeuds je vois que cet utilisateur a toujours  l'attribut "usr:enabled = false", ce qui ne devrait plus être le cas une fois qu'il a accepter l'invitation d'apres ce que j'ai compris du code la la class InviteHelper.java :


public void acceptNominatedInvitation(Map<String, Object> executionVariables){

  if (false==authenticationService.getAuthenticationEnabled(invitee))
                {
                    authenticationService.setAuthenticationEnabled(invitee, true);
                }

}

Voici ma configuration :

alfresco-global.properties


###############################
## Common Alfresco Properties #
###############################

dir.root=/opt/alfresco/alf_data


alfresco.context=alfresco
alfresco.host=*****
alfresco.port=8081
alfresco.protocol=http

share.context=share
share.host=*****
share.port=8081
share.protocol=http

### database connection properties ###
db.driver=org.gjt.mm.mysql.Driver
db.username=*****
db.password=*****
db.name=alfresco
db.url=jdbc:mysql://*****:3306/alfresco

### Authentication
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-klb:ldap

### Migration

#db.schema.update=true
#index.recovery.mode=FULL

### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21
ftp.ipv6.enabled=false

### RMI service ports ###
alfresco.rmi.services.port=50500
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
ooo.exe=/opt/alfresco/openoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
ooo.port=8100
img.root=/opt/alfresco/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/opt/alfresco/common/bin/pdf2swf
jodconverter.enabled=false
jodconverter.officeHome=/opt/alfresco/openoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=********************

### E-mail site invitation setting ###
notification.email.siteinvite=true


### File Protocol Root ###
protocols.rootPath=/${spaces.company_home.childname}/${spaces.sites.childname}

### License location ###
dir.license.external=/opt/alfresco

### Solr indexing ###
#index.subsystem.name=lucene
index.subsystem.name=lucene
#dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false

### Sharepoint

vti.server.port=7070
vti.server.external.host=*****

Je ne trouve aucune information (jira, forum) concernant un problème similaire ce qui fait que je ne sais pas si c'est un bug ou un problème de configuration de ma part. Cela fait plusieurs jours que je suis sur ce soucis qui est bloquant pour notre utilisation d'alfresco.

[EDIT]

J'ajout ici les logs de démarrage qui semble presquent parfait (ce qui fait plaisir comparé a ce que nous avions en 3.3g)

16:38:33,660 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
16:38:33,768 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
16:38:47,637 WARN  [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active/enabled
16:38:53,938 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
16:38:53,940 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
16:39:05,327 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
16:39:08,140 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
16:39:08,601 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Search' subsystem, ID: [Search, managed, lucene]
16:39:08,992 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Search' subsystem, ID: [Search, managed, lucene] complete
16:39:10,092 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
16:39:11,155 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
16:39:11,156 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
16:39:13,530 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
16:39:13,539 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
16:39:16,616 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
16:39:16,746 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
16:39:18,662 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
16:39:18,687 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 1 module(s).
16:39:18,780 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.2.
16:39:18,789 DEBUG [org.alfresco.repo.module.ModuleComponentHelper] Started module 'ModuleDetails[{module.version=1.2, module.description=Alfresco Vti Extension, module.id=org.alfresco.module.vti, module.repo.version.max=999, module.title=Vti, module.repo.version.min=0, module.installState=INSTALLED, module.installDate=2011-12-12T12:45:44.284+01:00}]' including 0components.
16:39:18,797 DEBUG [org.alfresco.repo.module.ModuleComponentHelper] Installed module found in distribution: org.alfresco.module.vti
16:39:18,800 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
16:39:19,603 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
16:39:19,835 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
16:39:19,835 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap-klb]
16:39:20,074 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap-klb] complete
16:39:21,455 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
16:39:21,456 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
16:39:21,611 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
16:39:21,611 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
16:39:21,903 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
16:39:21,903 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
16:39:22,002 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
16:39:22,002 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
16:39:22,096 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
16:39:22,096 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default]
16:39:22,150 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
16:39:22,187 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Disabled - clear non-missing user usages …
16:39:22,284 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to clear
16:39:22,284 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … cleared non-missing usages for 0 users
16:39:22,284 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
16:39:22,350 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Synchronizing users and groups with user registry 'ldap-klb'
16:39:22,382 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Retrieving groups changed since 9 déc. 2011 18:28:20 from user registry 'ldap-klb'
16:39:26,431 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-klb Group Analysis: Commencing batch of 48 entries
16:39:27,666 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-klb Group Analysis: Processed 48 entries out of 48. 100 % complete. Rate: 38 per second. 0 failures detected.
16:39:27,666 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-klb Group Analysis: Completed batch of 48 entries
16:39:28,246 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Retrieving users changed since 13 déc. 2011 11:27:40 from user registry 'ldap-klb'
16:39:28,466 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-klb User Creation and Association: Commencing batch of 0 entries
16:39:28,466 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-klb User Creation and Association: Completed batch of 0 entries
16:39:28,511 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Finished synchronizing users and groups with user registry 'ldap-klb'
16:39:28,512 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] 0 user(s) and 48 group(s) processed
16:39:28,529 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
16:39:31,632 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_22-b04; maximum heap size 989,875MB
16:39:31,655 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community). Current version: 4.0.0 (c 3945) schema 5 023. Originally installed version: 3.3.0 (g 2860) schema 4 100.
16:39:31,658 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
16:39:31,817 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
16:39:31,817 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
16:39:31,884 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
16:39:36,090 INFO  [org.alfresco.module.vti.VtiServer] Vti server started successfully on port: 7070
16:39:36,091 INFO  [org.alfresco.module.vti.VtiServer] Vti server SessionIdManagerWorkerName: jetty1
16:39:59,303 WARN  [org.springframework.extensions.webscripts.DeclarativeRegistry] Unable to register script classpath:webscripts/org/springframework/extensions/cmis/content.get.desc.xml due to error: 11130000 Web Script document org/springframework/extensions/cmis/content.get.desc.xml is attempting to define the url '/cmis/content:GET' already defined by org/alfresco/cmis/client/content.get.desc.xml
16:39:59,310 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 469 Web Scripts (+1 failed), 736 URLs
16:39:59,310 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
16:39:59,310 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
16:39:59,313 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 23162.797ms)
16:39:59,347 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:39:59,355 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
16:40:01,102 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
16:40:43,934 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:40:44,276 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
16:40:44,276 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:40:44,290 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
16:40:52,563 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 315 Web Scripts (+0 failed), 325 URLs
16:40:52,563 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
16:40:52,563 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
16:40:53,273 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 8958.1ms)
16:40:53,298 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
16:40:53,302 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js

Avez vous des pistes sur l'origine du problème ?
1 Reply
jvanluyten
Member II

Re: Invitation sites des utilisateurs externes (4.0.c)

Le probleme concernant l'URL à été résolu (verifié en 4.0.c):

https://issues.alfresco.com/jira/browse/ALF-12036