cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript login.post for Alfresco labs 3.0 on Linux

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

I installed Alfresco on Linux and a module which use the webscript "login.post" to authenticate the user. This module was developed for Alfresco Labs 3.0 for Windows and works fine, but the module does not work for Alfresco on Linux.

On http://localhost:8080/alfresco/service I don´t see the webscript  "login.post". Where I can get it and how I have to install it?

Thanks a lot in advance,
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
Are you sure you have the same version?  I suspect your linux version is older than windows version.

And I don't think there's such version as Alfresco Labs 3.0.

agey
Champ in-the-making
Champ in-the-making
Hi,

This is the version shown alfresco startup on Linux:

11:29:59,430 UserSmiley Frustratedystem INFO  [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (b 1164) schema 131 - Installed version 3.0.0 (b 1164) schema 131

And this is the versión on Windows:

09:36:24,421 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (Stable 1526) schema 1002

Yes, they are different but how I can install the web script "login.post" in the linux version?

Thanks,

mrogers
Star Contributor
Star Contributor
Easiest is just to upgrade the linux version.   There's a lot of bug fixes between Labs 3b and Labs 3d.

If you just want that web script then you should just be able to copy the login.post.json.ftl, login.post.
You will also need to change webscripts-application-context.xml to add the webscript definition and drop in the Java "LoginPost" bean.

agey
Champ in-the-making
Champ in-the-making
Hi mogers,

I copied login.post.json.ftl, login.post.desc.xml and login.post.xml.ftl files in alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository.
I modified web-scripts-application-context.xml file to add:
   <bean id="webscript.org.alfresco.repository.login.post" class="org.alfresco.repo.web.scripts.bean.LoginPost" parent="webscript">
      <property name="authenticationService" ref="authenticationService" />
   </bean>
And then I copied the alfresco-remote-api.jar from my Alfresco instalation on Windows to my Alfresco instalation on Linux. Now it works fine but, can you tell me if this can cause errors in other Alfresco features?

Thanks,

mrogers
Star Contributor
Star Contributor
It  should be fine Smiley Happy   That particular script is an isolated change.