Michael Zietlow
Michael Zietlow

Reputation: 65

Alfresco Community 7.1 to 7.4 content Migration resulting in "Failed to save" errors for everyone

Looking for anyone that has Alfresco content store migration experience. I'm no stranger to the Alfresco-Ansible-Deployment migration steps needed to move Contentstore & database between Alfresco Community versions. However, 7.4 appears to be Special. The only thing different for this migration was the SecureComms setting between SOLR6 and Alfresco.

Migrated 5.2 to 7.1 (SecureComms=none), No Issues. I can read/write to my documents. Migrated 7.1 to 7.2 (SecureComms=none), No Issues. I can read/write to my documents. Migrated 7.2 to 7.4 (SecureComms=secret), Issues! I can read but can not write to, comment, or favorite ANY documents.

Examples:

  1. When Clicking "Favorite" to a file or image: I see "Failed to save favorite" pop-up
  2. When Clicking "Comment" : I see "Failed to save comment" pop-up
  3. When Clicking "Like" : I see "Failed to save like" pop-up
  4. I even tried logging in with an admin user thinking it might be access related but I see the same pop-up's. =(
  5. I also blew away the index and had SOLR6 do a full re-index.

alfresco, catalina, and solr logs show NO corresponding errors when this popup occurs. I posted Questions in Alfresco Forum over at hyland several days ago, but no replies.

Been trying to get my data writable for a week now and beginning to think this might just be a 7.4 bug?

I recall seeing a similar issue when migrating from 5.2 to 7.1 but back then the work around was setting SecureComms=none then it started working again however that doesn't appear to be an option ib 7.4 and SecureComms secret must be set between SOLR and ALFRESCO.

Any ideas would be welcome.

Upvotes: -3

Views: 54

Answers (1)

Michael Zietlow
Michael Zietlow

Reputation: 65

SOLUTION: This was do to CORS. During the ansble install you can address it by defining known_url in group_vars/all.yml.

known_urls:
http://localhost:8080
http://host.domain.com
https://host.domain.com
https://host.domain.com/share

This will ultimately end up in alfresco-global.properties as:

#CSRF filter overrides
csrf.filter.enabled=true
csrf.filter.referer=^https?://host\\.domain\\.com(/.*)?
csrf.filter.referer.always=false
csrf.filter.origin=^https?://host\\.domain\\.com(/.*)?
csrf.filter.origin.always=false

Upvotes: 0

Related Questions