I can't log into the generated application

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Established Member

Re: I can't login into the generated application

Ok, well nothing happens in the network section when I try to login (I just have the console errors shown before). However when I reload the page I get all of this (if it can help) : 



Highlighted
Alfresco Employee

Re: I can't login into the generated application

Hi Jack,

you should login and search for :

alfresco/api/-default-/public/authentication/versions/1/tickets 

 

Highlighted
Established Member

Re: I can't login into the generated application

Ok so I get this :

{"error":{"errorKey":"framework.exception.UnsupportedResourceOperation","statusCode":405,"briefSummary"
:"03190008 L'opération n'est pas prise en charge","stackTrace":"Pour des raisons de sécurité, 
le traçage de la pile n'est plus affiché, mais la propriété est conservée dans les versions 
précédente.","descriptionURL":"https://api-explorer.alfresco.com"}}


Saying that the "The operation is not supported" and "For safety reasons, the stack tracing is no longer displayed, but the property is retained in the former versions."

Highlighted
Alfresco Employee

Re: I can't login into the generated application

There we go this is the error it says 405 probably could be a CORS problem because your FE and BE are not on the same domain.Try to follow the procedure in this link : 

alfresco-ng2-components/ALFRESCOCORS.md at master · Alfresco/alfresco-ng2-components · GitHub 

Highlighted
Established Member

Re: I can't login into the generated application

I actually did that from the very beginning but after many researches I thought it was the cors that I didn't set up well so I did follow this tutorial and allow them with the .jar and manually but, unfortunately, it didn't change anything...

Besides, when I go there : http://localhost:8080/alfresco/api/-default-/ I get a 404 error : 

{"error":{"errorKey":"framework.exception.EntityNotFound","statusCode":404,"briefSummary":"03190003 The entity associated with the id :  is not found","stackTrace":"For safety reasons, the stack tracing is no longer displayed, but the property is retained in the former versions.","descriptionURL":"https://api-explorer.alfresco.com"}}


At localhost:8080/alfresco/api/ I get :

{"list":{"pagination":{"count":1,"hasMoreItems":false,"totalItems":1,"skipCount":0,"maxItems":100},"entries":[{"entry":{"quotas":[],"isEnabled":true,"id":"-default-"}}]}}



When I try to log on the ADF I still get these errors about polyfills :
Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at eval (eval at <anonymous> (http://localhost:3000/polyfills.js:2649:2), <anonymous>:1395:27) at XMLHttpRequest.open

Highlighted
Alfresco Employee

Re: I can't log into the generated application

 I see that you probably have more than one error could you join to the gitter channel in order to do a more rapid debug  Alfresco/alfresco-ng2-components - Gitter  thanks

Highlighted
Established Member

Re: I can't log into the generated application

Ok, again, thank you for your help !

Highlighted
Alfresco Employee

Re: I can't log into the generated application

In the end we figure out that the setting for CORS and Process service and Content service URL were wrong.

The http prefix was missing in order to avoid this kind of problem inthe feature a validation in the settings will be added. [ADF-498] URL validation for ADF settings - Alfresco JIRA 

Thanks ‌ for the feedback