adamcin / net.adamcin.recap

Recap - rsync for Adobe Granite
http://adamcin.net/net.adamcin.recap
16 stars 15 forks source link

Issue with AEM 6.1 - CSRF token not present #10

Open kunalgaba opened 9 years ago

kunalgaba commented 9 years ago

AEM 6.1 does not allow POST requests if CSRF token is not present in the request. Because of this we can't use recap to save new addresses.

adolfodepazvela commented 8 years ago

I added granite.csrf.standalone dependency in /libs/recap/clientlibs/recap and it does the job!

miguelalvarado commented 8 years ago

Any progress on this? This issue is currently preventing me from using this on 6.1 projects

miguelalvarado commented 8 years ago

@adolfodepazvela can you create a branch and a pull request with the fix please?

adolfodepazvela commented 8 years ago

absolutly

On Monday, November 23, 2015, miguel notifications@github.com wrote:

@adolfodepazvela https://github.com/adolfodepazvela can you create a branch and a pull request with the fix please?

— Reply to this email directly or view it on GitHub https://github.com/adamcin/net.adamcin.recap/issues/10#issuecomment-159122473 .

laniela commented 8 years ago

You were right Adolfo, adding the granite.csrf.standalone dependency to the /libs/recap/clientlibs/recap node in crx/de work like a charm for me to.

Thanks

-Alain

yogesh-kulkarni commented 7 years ago

still not able to use it on AEM 6.1. I see call being made for /libs/granite/csrf/token.json. Getting this error after submit; net.adamcin.recap.api.RecapSessionException: RepositoryException while preparing path: /content/audiusa/en/myaudi at net.adamcin.recap.impl.RecapSessionImpl.sync(RecapSessionImpl.java:251)