Problème de recherche et d'authentification web services

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

Problème de recherche et d'authentification web services

Bonjour,

J'utilise la version 3.2r Community d'Alfresco sur SUSE Linux pour stocker des modèles de documents. Je récupère ensuite ces documents grâce aux webservices (WS). Ce WS fait d'abord une recherche Lucene pour retrouver le modèle puis retourne son contenu.
Le problème est le suivant : de façon aléatoire, la recherche ne retourne aucun résultat alors que les arguments sont toujours les mêmes. Le même appel ne marchent pas tout le temps.

J'ai d'abord pensé à un pb d'index alors j'ai fait une réindexation complète. Suite à cette réindexation, le problème n'est plus le même.
J'obtiens l'exception suivante :
Caused by: WSDoAllReceiver: security processing failed; nested exception is:
        org.apache.ws.security.WSSecurityException: The security token could not be authenticated or authorized
        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(RepositoryServiceSoapBindingStub.java:753)
        … 29 more
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSDoAllReceiver: security processing failed; nested exception is:
        org.apache.ws.security.WSSecurityException: The security token could not be authenticated or authorized
faultActor:
faultNode:
faultDetail:
        {http://xml.apache.org/axis/}hostname:XXXXXXXXXXXXXX.FR

Pouvez-vous m'aider ?
2 Replies
jeanjot
Active Member

Re: Problème de recherche et d'authentification web services

Bonjour

Je me demande ci cela ne correspondrais à un problème de droit …
Caused by: WSDoAllReceiver: security processing failed; nested exception is:
        org.apache.ws.security.WSSecurityException: The security token could not be authenticated or authorized
alioug
Member II

Re: Problème de recherche et d'authentification web services

Bonjour,

Non ce n'est pas un problème de droits vu que le compte utilisé pour les accès WS fait partie du groupe admin.
Ce groupe est synchronisé avec un serveur LDAP (la synchro marche bien et l'utilisateur est bien dans le groupe).

De plus j'ai fait en sorte que tous les utilisateurs soient lecteurs de ces documents (le groupe EVERYONE a le rôle Lecteur).