Searching protected node

mblazke - May 30, 2007 - 06:42
Project:Protected node
Version:6.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:tolmi
Status:closed
Description

The Protected-node functionality itself works fine, thanks!
I've found one hazy situation:
1. I create e.g. page & set up password protection for it
2. then I try to perform SEARCH (Drupal's standard, no custom enhancements on my site):

  • A: if the searched word occurs both on the normal & protected page: search results are title & highlighted text
  • B: if the searched word occurs on one protected page only: there is the "Protected Node-Enter Password" screen directly instead of clickable title of node as usual
  • Is there any option I've misunderstood which can "standardize" the results of search ?

    Sorry, I'm in doubt if this is "support" or "feature" request (in that case I suggest to show only the title of protected node as search result in both A/B conditions) - change its category as needed

    Thanks,
    Michal

    #1

    tolmi - November 6, 2007 - 18:59

    Yes, the general concept how protected_node works is flawed in many aspects (especially in searching among protected nodes). This is why I will reimplement this module (and besides that get it ready for Drupal 6.x). Again, sorry for answering so late. Thank you for your observation.

    #2

    tolmi - November 8, 2007 - 03:50
    Assigned to:Anonymous» tolmi
    Status:active» fixed

    HEAD now implements new logic flow, which means that every protected node will be indexed by the search module, but a user searching for a word or expression found in a protected node can't see the node in the result set unless he/she already visited that node and given a valid password or is the owner of the node.

    Please test HEAD.

    #3

    mblazke - November 12, 2007 - 12:13

    ...but a user searching for a word or expression found in a protected node can't see the node in the result set unless he/she already visited that node and given a valid password or is the owner of the node

    Thanx, that sounds great!
    I'll give it a try ASAP (means next week)
    Michal

    #4

    mblazke - November 22, 2007 - 13:38
    Category:support request» feature request

    OK, I've installed the Nov 8 2007 dev version.
    After installation there are separate checkboxes for every existing content type in user-role-permission screen (/admin/user/access) - THANKS
    (I hope this module will add new ones for every future new content type i'll add to my site - not tested yet)
    I did not get the "access protected content" for the first time ;-) but now - I believe - I have all the permissions tuned up fine,
    both for authors and visitors (authenticated user has to have the "access-protected-content" on my site).

    Yes, as was said ...but a user searching for a word or expression found in a protected node can't see the node in the result set unless he/she already visited that node and given a valid password or is the owner of the node - module works exactly as described - THANKS AGAIN, tolmi!

    #5

    tolmi - November 22, 2007 - 12:26

    I created a new feature request for your hint: http://drupal.org/node/194455
    Please monitor that for this issue, to keep things clean and organized. ;)

    I'm also glad to hear that you enjoyed this module and took the time to report back and make it a much more badass contribution! Keep up the good work (on the creative side too).

    #6

    Anonymous - December 6, 2007 - 13:43
    Status:fixed» closed

    Automatically closed -- issue fixed for two weeks with no activity.

    #7

    javierdiaz - August 27, 2009 - 00:06
    Version:5.x-1.0» 6.x-1.2

    This issue identified above by mblazke still seems to be the case in 6.x. Was it ever resolved When any protected_node content is search, I get the dreaded "Protected Node-Enter Password" screen directly instead of clickable titles of node as usual. If you enter the password you are directed to that node, not to the search results. If the protected_node is disabled, the search results include all nodes with the searched phrase.

     
     

    Drupal is a registered trademark of Dries Buytaert.