Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

default app user cannot use the app #95

Closed
hugokoopmans opened this issue Jul 14, 2015 · 5 comments
Closed

default app user cannot use the app #95

hugokoopmans opened this issue Jul 14, 2015 · 5 comments
Labels
Milestone

Comments

@hugokoopmans
Copy link

Hi,

I want to set up the default app user from the template. It gets created all right and also has the app-role.
So I can login to the app but it does not return search results.

I added additional roles like rest-extension-user,rest-reader, search-internal, slush-dikw-node-role but no luck. Looked at previligenges and collections but that seems not relevant. Searched in Roxy on role-based-security no real pointers.

Looked at ml-config.xml but no pointers there on what to add/change.
What am I missing to get the default app user to work? (or even better a blueprint for an additional named user)

@grtjn
Copy link
Contributor

grtjn commented Jul 14, 2015

Verify that the user is actually allowed to make REST api calls by checking the browser console, or calling /v1/search with the browser directly. Also make sure to hand out appropriate document permissions for the documents you are uploading..

@hugokoopmans
Copy link
Author

Verified I can get to REST API with user ... check
Verified I can query REST search endpoint ... check no results
Indeed we have uploaded docs as admin and we would like to upload user different from the app-user.
Can you show me how to change permissions on a document (or collection) for a specific user preferable from roxy... thx

@grtjn
Copy link
Contributor

grtjn commented Jul 14, 2015

You would normally apply doc permissions at upload. If you use Roxy to deploy content from the data/ directory, that will get read/update permission for app-role. If you use MLCP (through Roxy or not) you can explicitly specify output_permissions. If you use custom code to upload content, then use a user that has default permissions according what you want to have applied to any doc inserted with that user.

@grtjn
Copy link
Contributor

grtjn commented Jul 16, 2015

Can we close this?

@hugokoopmans
Copy link
Author

Using mlcp with -output_permissions works!

example:
mlcp.sh import -host localhost -port 8140 -username aaa -password xyz -input_file_path /home/data/sample -mode local -output_uri_replace "".*/data/sample,''"" -output_uri_prefix incoming/linkedin/ -output_collections incoming,incoming/linkedin -output_permissions slush-dikw-node-role,read

@grtjn grtjn added this to the 0.1.2 milestone Sep 8, 2015
@grtjn grtjn added the bug label Sep 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants