Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Survey Designer loads surveys from public folder #165

Open
xmichael opened this issue Jul 31, 2015 · 5 comments
Open

Survey Designer loads surveys from public folder #165

xmichael opened this issue Jul 31, 2015 · 5 comments

Comments

@xmichael
Copy link

The survey designer loads surveys from the public folder with public=true. This causes deletion or unpredictable corruption of surveys that were initially private and later became public.

Solution - - remove all GETs that use the public UUID and use private (0000-....) instead

@sebastianclarke
Copy link

Possible duplicate of #162

panterz pushed a commit to cobweb-eu/fieldtrip-authoring-tool that referenced this issue Aug 14, 2015
@panterz
Copy link

panterz commented Aug 14, 2015

I just deployed it on dev. Does anyone want to test it?

@sebastianclarke
Copy link

We're having some problems testing: Mark is getting certificate errors trying to connect the app to the dev environment, we are investigating this further now.

Testing from my machine:
I can confirm that having made a survey as public, and then switching it to private, the survey appears, as created, in the survey designer!
I can confirm, this also works for the reverse, create and modify as private, then switch to public, and the survey opens fine in the designer.
HOWEVER, having joined the private survey, it is not visible in the app under registered surveys after syncing. It is still available as a public survey (known 'ghost' issue) but I cannot confirm this working till I see it successfully load on the app.

The survey id that is failing is ec2ec373-66b2-432b-99e0-00c5082a59ca the uuid of the user is 459f6ea6-0c30-2653-e056-51788fcf0698 - as a matter of interest the wget url shows that the user is a member of the survey... wget -qO- --user=admin --password=admin --auth-no-challenge "http://localhost:8010/geonetwork/private/eng/qi?type=survey&to=100&fast=index&_content_type=json&_participant=459f6ea6-0c30-2653-e056-51788fcf0698"

I was hoping we had solved all the issues with survey membership, but it appears perhaps not.

@panterz
Copy link

panterz commented Aug 18, 2015

I've noticed a bug with the portal. If the user changes a survey from private--> public and then tries to edit the survey then the flag of the survey url has public=false instead of public=true which means that any change you do will be applied to the registered survey. The reason that happens is because a new tab opens when the user decides to modify the survey and the initial page is not reloaded after the modification. Is that clear @pvgenuchten @Delawen ?

@panterz
Copy link

panterz commented Aug 18, 2015

I deployed it on live. I do confirm the bug I reported above and the fact that changing from public to private the form exists on public surveys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants