cancel
Showing results for 
Search instead for 
Did you mean: 

/alfresco/wcs/slingshot/doclib...etc results in a 404

fintan
Champ in-the-making
Champ in-the-making
Hi all,

I've recently installed Alfresco GA-201605. I've have solr, alfresco and share installed on separate vm's.
They are all talking to each other successfully.

The problem I am experiencing is that any url that goes to /alfresco/wcs/slingshot/doclib or /alfresco/wcs/slingshot/doclib2 results in a 404. So for example

"GET /alfresco/wcs/slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50&filter=recentlyModifiedByMe HTTP/1.1" 404 1571


The Web Script /alfresco/wcs/slingshot/doclib/doclist/documents/node/alfresco/company/home has responded with a status of 404 - Not Found.

404 Description:   Requested resource is not available.

Message:   04270002 Script url /slingshot/doclib/doclist/documents/node/alfresco/company/home does not map to a Web Script.
Server:   Community v5.1.0 (r127059-b7) schema 10,001
Time:   27-May-2016 15:54:33


Is there a urlrewrite file I need to edit? Or can someone give me an idea where I should be look to resolve the issue. Thanks


Regards,
  Fintan
4 REPLIES 4

steven_okennedy
Star Contributor
Star Contributor
Have you updated the properties in your Share installation to let Share know that it Alfresco is not on localhost?  You have to include elements in your share-config-custom.xml that override each of the remote endpoints that Share uses, including the ones for feeds, no-auth access and user access as well as any endpoints you've configured for whatever authentication menchanism you're using (e.g. Kerberos, external etc) if you have.

Have a look at the bundled share-config-custom.xml.sample that comes with the out of the box installation in tomcat/shared/classes/alfresco/web-extension

Regards

Steven

fintan
Champ in-the-making
Champ in-the-making
Here's a log from Alfresco repo.


192.168.1.1 - - [30/May/2016:14:46:37 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 302 -
192.168.1.5 - - [30/May/2016:14:46:44 +0100] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 200 247
192.168.1.5 - - [30/May/2016:14:46:44 +0100] "GET /alfresco/service/api/solr/model?modelQName=%7Bhttp%3A%2F%2Fwww.alfresco.org%2Fmodel%2Fsite%2F1.0%7DsiteModel HTTP/1.1" 200 3005
192.168.1.5 - - [30/May/2016:14:46:44 +0100] "GET /alfresco/service/api/solr/transactions?minTxnId=0&maxTxnId=2000&maxResults=1 HTTP/1.1" 200 249
192.168.1.5 - - [30/May/2016:14:46:44 +0100] "GET /alfresco/service/api/solr/transactions?minTxnId=0&maxTxnId=2000&maxResults=1 HTTP/1.1" 200 249
192.168.1.5 - - [30/May/2016:14:46:44 +0100] "GET /alfresco/service/api/solr/transactions?fromCommitTime=1464344170390&toCommitTime=1464347770390&maxResults=2000&baseUrl=%2Fsolr4%2Farchive%2F&hostName=alf-search-1&template=&instance=0&numberOfShards=1&port=8080&stores=archive%3A%2F%2FSpacesStore&isMaster=true&hasContent=true&shardMethod=MOD_ACL_ID&lastUpdated=1464616005086&lastIndexedChangeSetCommitTime=1464217246247&lastIndexedChangeSetId=359&lastIndexedTxCommitTime=1464347770390&lastIndexedTxId=786036 HTTP/1.1" 200 119
192.168.1.1 - - [30/May/2016:14:46:47 +0100] "POST /alfresco/wcs/api/login HTTP/1.1" 204 -
192.168.1.1 - - [30/May/2016:14:46:48 +0100] "GET /alfresco/wcs/api/people/myusername?groups=true HTTP/1.1" 200 3429
192.168.1.1 - - [30/May/2016:14:46:48 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:48 +0100] "GET /alfresco/wcs/webframework/content/metadata?user=myusername HTTP/1.1" 200 5620
192.168.1.1 - - [30/May/2016:14:46:48 +0100] "GET /alfresco/wcs/remoteadm/has/alfresco/site-data/pages/user/myusername/dashboard.xml?s=sitestore HTTP/1.1" 200 4
192.168.1.1 - - [30/May/2016:14:46:49 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:49 +0100] "GET /alfresco/wcs/api/people/myusername/preferences HTTP/1.1" 200 1891
192.168.1.1 - - [30/May/2016:14:46:49 +0100] "GET /alfresco/wcs/api/admin/usage HTTP/1.1" 200 263
192.168.1.1 - - [30/May/2016:14:46:49 +0100] "GET /alfresco/api/-default-/private/alfresco/versions/1/modulepackages/alfresco-share-services HTTP/1.1" 404 5155
192.168.1.1 - - [30/May/2016:14:46:49 +0100] "GET /alfresco/wcs/api/people/myusername/sites HTTP/1.1" 200 1681
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/api/activities/feed/user?format=json&exclUser=true HTTP/1.1" 200 13
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/api/people/myusername/sites?roles=user&size=100 HTTP/1.1" 200 1581
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "POST /alfresco/wcs/api/sites/query HTTP/1.1" 200 16
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50&filter=recentlyModifiedByMe HTTP/1.1" 404 1571
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/calendar/events/user?from=now&to=2016-07-29&size=100 HTTP/1.1" 200 41
192.168.1.1 - - [30/May/2016:14:46:50 +0100] "GET /alfresco/wcs/api/task-instances?authority=myusername&properties=bpm_priority,bpm_status,bpm_dueDate,bpm_description&exclude=wcmwf:*&skipCount=0&maxItems=50 HTTP/1.1" 200 213
192.168.1.1 - - [30/May/2016:14:46:51 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:51 +0100] "GET /alfresco/wcs/touch HTTP/1.1" 200 -
192.168.1.1 - - [30/May/2016:14:46:51 +0100] "GET /alfresco/wcs/api/people/myusername/preferences HTTP/1.1" 200 1891
192.168.1.5 - - [30/May/2016:14:46:59 +0100] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 200 247
192.168.1.5 - - [30/May/2016:14:46:59 +0100] "GET /alfresco/service/api/solr/model?modelQName=%7Bhttp%3A%2F%2Fwww.alfresco.org%2Fmodel%2Fsite%2F1.0%7DsiteModel HTTP/1.1" 200 3005
192.168.1.5 - - [30/May/2016:14:46:59 +0100] "GET /alfresco/service/api/solr/transactions?minTxnId=0&maxTxnId=2000&maxResults=1 HTTP/1.1" 200 249
192.168.1.5 - - [30/May/2016:14:46:59 +0100] "GET /alfresco/service/api/solr/transactions?minTxnId=0&maxTxnId=2000&maxResults=1 HTTP/1.1" 200 249

fintan
Champ in-the-making
Champ in-the-making
Hi Steven,

Thanks for you reply, here is how I have configured share-config-custom.xml. I could be missing the endpoint for slingshot, but for the life of me I can't find it.

Regards,
Fintan


<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
        <repository-url>https://www.alfresco-remote-repo.com/alfresco</repository-url>
   </config>  
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-api</id>
            <parent-id>alfresco</parent-id>
            <name>Alfresco Public API - user access</name>
            <description>Access to Alfresco Repository Public API that require user authentication.
                         This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/api</endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
         </connector>

         <connector>
            <id>alfrescoHeader</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using header and cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
            <userHeader>SsoUserHeader</userHeader>
         </connector>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <parent-id>alfresco</parent-id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>alfrescoHeader</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>

         <endpoint>
            <id>alfresco-api</id>
            <parent-id>alfresco</parent-id>
            <name>Alfresco Public API - user access</name>
            <description>Access to Alfresco Repository Public API that require user authentication.
                         This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
            <connector-id>alfrescoHeader</connector-id>
            <endpoint-url>https://www.alfresco-remote-repo.com/alfresco/api</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
      </remote>
   </config>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
        <repository-url>https://www.alfresco-remote-repo.com/alfresco</repository-url>
   </config>


Here's a log from share.


192.168.1.1 - - [30/May/2016:11:24:49 +0100] "GET /share/page/ HTTP/1.1" 302 -

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/page/user/myusername/dashboard HTTP/1.1" 200 52304

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/delete-site_4f654579c88935e9819b08bd9653c0b9.js HTTP/1.1" 200 3148

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-tasks_0c0ac6a30d79c0afb4932ec1dbb02f39.js HTTP/1.1" 200 5941

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/create-site_60c9a76848df17fa1f408ecfa0fba17f.js HTTP/1.1" 200 5914

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/workflow/workflow-actions_89ab5f3ef5646cb0ff50af5939163938.js HTTP/1.1" 200 3097

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-sites_fe6c474e5c474563c848c1f4b519f513.js HTTP/1.1" 200 9653

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-documents_609f91590f29b703462cc5768795f4d6.js HTTP/1.1" 200 2100

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/user-calendar_851efcb8639404130366e98771d5bb14.js HTTP/1.1" 200 2496

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/about-share_469c075223b37f7a4263a25a0921b929.js HTTP/1.1" 200 1402

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-meeting-workspaces_502144a482aedcf3a3595a3a4c7e5c9b.js HTTP/1.1" 200 5007

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/activities_cda37f5c76395886e32270503d0ab7bb.js HTTP/1.1" 200 5553

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-tasks_f744a066dd1725651801f072ff671ef0.css HTTP/1.1" 200 1137

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/delete-site_d41d8cd98f00b204e9800998ecf8427e.css HTTP/1.1" 200 -

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/create-site_a38bada01786d33165967625c46d10fd.css HTTP/1.1" 200 283

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/activities_5ccf60f59d8e4834996d6563e54970e3.css HTTP/1.1" 200 2365

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-documents_277fd4aa3e5f02b08f8fabeeb21af9fd.css HTTP/1.1" 200 1104

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-sites_5773ff8319a6d8335c69f91b0424daf4.css HTTP/1.1" 200 1530

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/my-meeting-workspaces_9c9963ee71a2ca2b6fe21528c40912e5.css HTTP/1.1" 200 2433

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/dashlets/user-calendar_6d5cfd029675d33d96956ba5a3a25a64.css HTTP/1.1" 200 686

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/e39f860a14cf8d848db4f2d26798ebba.js HTTP/1.1" 200 101253

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/modules/about-share_b62f36329c50e9017fc97beead2b02e5.css HTTP/1.1" 200 1493

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/images/site-16.png HTTP/1.1" 200 437

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/footer/footer_e9412e488dbccdea677a03379d64994c.css HTTP/1.1" 200 796

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/images/workflow-16.png HTTP/1.1" 200 334

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/53865acf349bba4df59a74f93d1f835c.css HTTP/1.1" 200 124425

192.168.1.1 - - [30/May/2016:11:24:50 +0100] "GET /share/res/components/images/alfresco-share-logo.png HTTP/1.1" 200 6616

192.168.1.1 - - [30/May/2016:11:24:51 +0100] "GET /share/res/js/aikau/1.0.63/alfresco/core/css/opensans.woff HTTP/1.1" 200 109052

192.168.1.1 - - [30/May/2016:11:24:51 +0100] "GET /share/res/js/surf/fc845bb74bba47ff0f08a3f2ee0655b7.js HTTP/1.1" 200 555727

192.168.1.1 - - [30/May/2016:11:24:51 +0100] "GET /share/service/components/dashlets/activities/list?site=&mode=user&dateFilter=7&userFilter=others&activityFilter= HTTP/1.1" 200 1

192.168.1.1 - - [30/May/2016:11:24:51 +0100] "GET /share/proxy/alfresco/slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50&filter=recentlyModifiedByMe HTTP/1.1" 404 155

9

192.168.1.1 - - [30/May/2016:11:24:51 +0100] "GET /share/proxy/alfresco/api/people/myusername/sites?roles=user&size=100 HTTP/1.1" 200 1569

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/proxy/alfresco/api/task-instances?authority=myusername&properties=bpm_priority,bpm_status,bpm_dueDate,bpm_description&exclude=wcmwf

:*&skipCount=0&maxItems=50 HTTP/1.1" 200 202

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/service/modules/authenticated?noCache=1464603955239&a=user HTTP/1.1" 200 23

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/components/images/help-activities-bw-32.png HTTP/1.1" 200 1651

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/components/images/imap-fav-deselected-16.png HTTP/1.1" 200 244

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/components/images/delete-16.png HTTP/1.1" 200 395

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/components/images/help-task-bw-32.png HTTP/1.1" 200 1457

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/proxy/alfresco/calendar/events/user?from=now&to=2016-07-29&size=100 HTTP/1.1" 200 30

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/lib/jquery-1.11.1/jquery-1.11.1.min.js HTTP/1.1" 200 95786

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/lib/dojo-1.10.4/dojo/resources/blank.gif HTTP/1.1" 200 43

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/lib/jquery-ui-1.11.1/jquery-ui.min.js HTTP/1.1" 200 238314

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/service/1-0-63/defaults.js HTTP/1.1" 200 988

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/modules/edit-site.js HTTP/1.1" 200 4500

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/proxy/alfresco/api/people/myusername/preferences HTTP/1.1" 200 1879

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/themes/lightTheme/images/app-logo-48.png HTTP/1.1" 200 6059

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/aikau/1.0.63/alfresco/css/images/Delete.PNG HTTP/1.1" 200 395

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/aikau/1.0.63/alfresco/menus/css/images/transparent-20.png HTTP/1.1" 200 173

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/aikau/1.0.63/alfresco/header/css/images/search-16-gray.png HTTP/1.1" 200 3080

192.168.1.1 - - [30/May/2016:11:24:52 +0100] "GET /share/res/js/aikau/1.0.63/alfresco/core/css/opensanscondensed.woff HTTP/1.1" 200 82956

fintan
Champ in-the-making
Champ in-the-making
Just going to answer my own question here. Apparently share services contains all the files that I was missing. Applying the amp to alfresco.war installs the web-scripts.