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) :
Hi Jack,
you should login and search for :
alfresco/api/-default-/public/authentication/versions/1/tickets
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."
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
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
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
Ok, again, thank you for your help !
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
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.