Hello,
I have downloaded sling 8 from https://github.com/apache/sling and using the
launchpad jar file I have installed the distribution bundles api, core, sample
and dependencies in the author instance running at 8080 and also at the publish
instance running at port 8090.
I want to test the forward distribution use case, described at
contrib/extensions/distribution/README.md.
Pardon my ignorance, my questions are:
1. How to configure remote imported on the publish instance running at 8090?
What command do I need to enter to make this happen?
2. How to configure the forward agent on the author instance?
3. It looks like the distribution sample is activating testDistributionUser.
Now, if testDistributionUser send a POST request to distribute /content/sample1
node contents to importer, it must work and importing must fail if the request
is from some other user. I am expecting this functionality and want to test and
verify.
Thanks and regards,
Ganesh
>From contrib/extensions/distribution/README.md
Usecases
Forward distribution
In order to configure the "forward" distribution workflow, that transfers
content from an author instance to a publish instance: - configure a remote
importer on publish - configure a "forward" agent on author pointing to the url
of the importer on publish
Send HTTP POSTrequest to
http://localhost:8080/libs/sling/distribution/services/agents/publish with
parameters action=ADD and path=/content
* create/update content http -a admin:admin -v -f POST
http://localhost:8080/libs/sling/distribution/services/agents/publish
action=ADD path=/content/sample1
* delete content http -a admin:admin -v -f POST
http://localhost:8080/libs/sling/distribution/services/agents/publish
action=DELETE path=/content/sample1
>From http://localhost:8080/system/userManager.html#_charset_=UTF-8&o=0&q=&sp=*
Name Display Name
admin<http://localhost:8080/system/userManager/user/admin.html>
administrators<http://localhost:8080/system/userManager/group/administrators.html>
anonymous<http://localhost:8080/system/userManager/user/anonymous.html>
GroupAdmin<http://localhost:8080/system/userManager/group/GroupAdmin.html>
testDistributionUser<http://localhost:8080/system/userManager/user/testDistributionUser.html>
UserAdmin<http://localhost:8080/system/userManager/group/UserAdmin.html>
Information contained in this e-mail message is confidential. This e-mail
message is intended only for the personal use of the recipient(s) named above.
If you are not an intended recipient, do not read, distribute or reproduce this
transmission (including any attachments). If you have received this email in
error, please immediately notify the sender by email reply and delete the
original message.