CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is there a good reason "standalone form or directory" is the default?
Pages: [1]

Author Topic: Is there a good reason "standalone form or directory" is the default?  (Read 1448 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Is there a good reason "standalone form or directory" is the default?
September 23, 2013, 01:44:05 pm
In my experience it's rare that this "standalone form or directory" setting is actually used, and although it shouldn't  be removed, I'm wondering if it needs to be automatically set as the deafult? 

Can "Used for" be NULL by default when creating new profiles?

Reasoning: "standalone form or directory" is one switch that when combined with other switches will expose data publicly.  And while someone may often remove "standalone form or directory" if it's not required, most don't.  Even Civi's default reserved profiles have "standalone form or directory" setting, with no apparent reason I can see. 

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there a good reason "standalone form or directory" is the default?
September 24, 2013, 04:22:41 pm

I kinda agree with this primarily from the security angle. We'll need to ensure that the error messages folks get are fairly clear and they know what to do if they do want to expose 'profile create' etc.

regarding why the reserved profiles are set as 'profile', the reasoning is they are good templates for 'profile create' forms and folks might just want to use a unifed 'individual create' across various forms. Also all the fields are set to 'User and User Admin' only which further tightens the potential data issues

so after typing, i'm not very sure that its a bad idea to keep the 'standalone form' checked by default

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Is there a good reason "standalone form or directory" is the default?
October 01, 2013, 06:37:47 am
Two thoughts:

1. Access to profiles isn't entirely automatic -- the site admin needs to grant a permission (like "profile listings and forms") or create an ACL to grant access to a specific form. Of course, it's so common to grant the permission that I'm not sure it's a meaningful protection...

2. Using the reserved event profile as a standalone profile doesn't seem like a great idea in that (a) the profile isn't easy to "discover" when you're setting up the standalone profile (you have to discover it by navigating to Administer => Custom => Profile => Reserved) and (b) a profile for event registration can include fields that are invalid for standalone (e.g. "Participant" fields).

3. Agree that it would be more secure to not enable "Standalone" by default -- NULL makes sense as long as the UI encourages the admin to make a choice (e.g. display a red message if no options are chosen).

(My comments are idle, thought -- not sure who would make a change or when.)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Is there a good reason "standalone form or directory" is the default?
October 01, 2013, 07:45:00 am
For what I've seen, the usual path for normal user is
1) having the registration that doesn't work for an event/donation page
2) adding permissions semi-randomly until it finally does

To get an online registration for an event working, you need to grant profile access (not sure about the name, not super obvious), and as too many profiles are standalone and listing, you might end up with your db exposed. It has happened in the past and now the default is better.

wondering if the permission standalone form and directory shouldn't be split in two. In my experience, it seldom happen that you use the same profile to do "end user" data entry with the profile form and directory (with the same profile at least).

Is there any logic I fail to see to have bundled the two conceptually different permissions in the profile under a common "standalone form and directory"?

and anyway, agree with tim, by default it shouldn't be open, but have to admit I use api for listing and webform for form, so I don't need it anyway. But I don't think it's a very often used feature, at least not to the point it should be on by default.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Is there a good reason "standalone form or directory" is the default?
October 03, 2013, 11:39:23 am
Tim, #3, it is already the case that no option is currently required.   I think this is ok. 

In recent years and after seeing many sites, some with 60+ profiles 90+% set to "standalone form or profile" but which NONE of those profiles were actually being used for that 'standalone' purpose, it's become apparent we are not making an accurate default assumption.  Furthermore, nor are users understanding they should un-check that setting if they don't need to use "standalone form or profile".

NULL should be the default for newly created profiles.
« Last Edit: October 03, 2013, 11:42:13 am by CiviTeacher.com »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Is there a good reason "standalone form or directory" is the default?
October 05, 2013, 11:01:23 am
I'm trying to be helpful here, not critical, and improve our defaults for the entire community.   Please understand that.   I've done a little research this morning and  I don't understand the purpose of the default profile permission setup. 

By default Civi ships with the following profile permissions (attached).

It also ships with certain reserved profiles (New Individual, etc) that have no 'settings' link and thus cannot have the 'standalone form' setting removed via the UI.  (attached).

The result concerns me.

As we all know, either the "profile listing and forms" permission OR the "profile create" permission is required to allow users (anonymous or otherwise) to access event registration or contribution pages that contain profiles.  Almost all of these pages contain at least one profile, right? Ok.

What these permissions ALSO do, is allow those same users to access any profile with the "standalone form or directory" setting, which is the default.

The result is that anonymous users (typically the ones filling out contribution forms) can also (if so inclined) access these standalone forms (New Individual, etc. ) and begin entering new contacts.   I'll mention again that the "standalone form" setting cannot be turned off on certain profiles (at least not via UI) because those are reserved profiles.   

I wonder why spammers haven't found this form or worse yet, this one, and started flooding our database with nonsense already.

I'm not the smartest guy.  Am I missing something, or is this situation a bad thing?  If it concerns others, is it being addressed in 4.4 or can it be addressed?
« Last Edit: October 05, 2013, 03:56:17 pm by xavier »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there a good reason "standalone form or directory" is the default?
October 05, 2013, 11:07:19 am

we are trying to be helpful too :) U raise good issues worth considering and addressing.We'll talk about it during the sprint and propose a few changes and modifications.

civicon et al are keeping us a bit busy to address issues immediately :P

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Is there a good reason "standalone form or directory" is the default?
October 05, 2013, 04:00:39 pm
Stoob, I took the liberty to edit your msg (replaced civicrm by nospamcivicrm in the url).
If you are correct (and probably are) posting that link in the forum means it will be found by a spambot indeed.

I'd rather avoid having spam contacts created in any database, but even less in one I work with regularly ;)

demo, less of an issue it's regularly reset anyway so I left it.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Is there a good reason "standalone form or directory" is the default?
October 24, 2013, 09:24:39 am
Was this issue discussed at the sprint?  What were decision(s) made, if any?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is there a good reason "standalone form or directory" is the default?

This forum was archived on 2017-11-26.