cancel
Showing results for 
Search instead for 
Did you mean: 

401 unauthorized webscript

robain
Champ in-the-making
Champ in-the-making
is it possible to capture this error in case of basic http authentication while accessing a webscript and give custom message.

thanks
12 REPLIES 12

sylvain_d
Champ in-the-making
Champ in-the-making
I'm using Alfresco and Share but my alfresco is running under an another port than 8080
In order to get Share working I edited a lot of file to change the 8080.

I can now use Share but I've got an 401 error after saving a wiki page while Alfresco is trying to generate the feeds.
If I try the URL given, I've got a prompt saying that the url require an authentication and that the site indicate "Alfresco"

Why is Alfresco asking "itself" or Share for a password ?
How can I solve that ?

My stack :

13:57:30,389 INFO  [org.alfresco.repo.activities.feed.FeedTaskProcessor] >>> Generated 4 activity feed entries for 1 activity posts
13:57:32,041 INFO  [org.alfresco.repo.activities.post.lookup.PostLookup] Update: 1 activity posts
13:57:47,047 INFO  [org.alfresco.repo.activities.feed.FeedTaskProcessor] >>> Generated 0 activity feed entries for 1 activity posts
13:57:47,047 ERROR [org.alfresco.repo.activities.feed.local.LocalFeedGridJob] java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:18200/alfresco/service/api/activities/templates/org/alfresco/wiki/*?format=json
13:57:47,047 ERROR [org.alfresco.repo.activities.feed.AbstractFeedGenerator] Exception during generation of feeds
java.lang.Exception: Server returned HTTP response code: 401 for URL: http://localhost:18200/alfresco/service/api/activities/templates/org/alfresco/wiki/*?format=json
        at org.alfresco.repo.activities.feed.local.LocalFeedGridJob.execute(LocalFeedGridJob.java:64)
        at org.alfresco.repo.activities.feed.local.LocalFeedGenerator.generate(LocalFeedGenerator.java:102)
        at org.alfresco.repo.activities.feed.AbstractFeedGenerator.execute(AbstractFeedGenerator.java:133)
        at org.alfresco.repo.activities.feed.FeedGeneratorJob.execute(FeedGeneratorJob.java:56)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
13:58:00,658 INFO  [org.alfresco.repo.activities.feed.FeedTaskProcessor] >>> Generated 4 activity feed entries for 1 activity posts

luisg
Champ in-the-making
Champ in-the-making
hello there…

I installed the alfresco 3 stable with success. I had no problems until now:
I just used share one time to create a new project, just for tests. After create that project I get the following error in alfresco.log

16:02:09,150 ERROR [org.alfresco.repo.activities.feed.local.LocalFeedGridJob] java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8080/alfresco/service/api/activities/templates/org/alfresco/links/*?format=json
16:02:09,152 ERROR [org.alfresco.repo.activities.feed.AbstractFeedGenerator] Exception during generation of feeds
java.lang.Exception: Server returned HTTP response code: 400 for URL: http://localhost:8080/alfresco/service/api/activities/templates/org/alfresco/links/*?format=json
   at org.alfresco.repo.activities.feed.local.LocalFeedGridJob.execute(LocalFeedGridJob.java:64)
   at org.alfresco.repo.activities.feed.local.LocalFeedGenerator.generate(LocalFeedGenerator.java:102)
   at org.alfresco.repo.activities.feed.AbstractFeedGenerator.execute(AbstractFeedGenerator.java:133)
   at org.alfresco.repo.activities.feed.FeedGeneratorJob.execute(FeedGeneratorJob.java:56)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

I my alfresco is not running in default port (8080), but in 8280. I think the problem is that I missed to modify a configuration file somewhere. But where?

I changed all the 8080 to 8280 in the configuration files in:
- <Alfresco_Directory>/tomcat/webapps/share/WEB-INF/classes/alfresco/
- <Alfresco_Directory>/tomcat/webapps/studio/WEB-INF/classes/alfresco/
- <Alfresco_Directory>/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/

Can you please tell me what file I miss to modify?

Help, Thanks


Luis

t_broyer
Champ in-the-making
Champ in-the-making
Probably (certainly) the "repo.remote.endpoint.url" property in repository.properties (in the "alfresco" webapp)