[development] Finding logic flaw in wishlist module
Scott McLewin
drupal at mclewin.com
Fri Dec 12 15:03:32 UTC 2008
Tony,
I'm the maintainer of that module, and the wishlist issue queue is the
place to file issues.
On this particular concern the module won't allow anonymous users to
purchase items by design. Two reasons. 1) there's also a "put a gift
back" capability that requires that we know who the user is. 2) if
anonymous users can get gifts off the list, than crawlers will end up
following those links and will mark all your items purchased in a matter
of days. Anonymous users see the non-functional "get this gift" link to
drive them to click it, see that they need an account, and then enroll
with your site.
If you file an issue asking to allow anonymous users to purchase items,
I'll reject it. :)
If you've found another problem during your research, I do want to hear
about it. File the details in the wishlist module's issue queue.
Scott
Tony Yarusso wrote:
> As background, I'm attempting to modify the wishlist module
> (http://drupal.org/project/wishlist) to allow anonymous users to claim
> gifts for purchase. While I have most of it figured out, I think I
> found a bug lurking somewhere else (which may be why this was disabled
> originally). Here's what happens:
>
> When an anonymous user views the wishlist in list view, they will see
> the "Get this gift" link regardless of its purchase status.
> Authenticated users will properly get either "Get this gift" or "none
> left to purchase".
>
> For either type of user, on the full node view of the gift in question
> they will see the correct numbers for "number requested" and "number
> purchased", and other things on that page will properly reflect its
> status.
>
> I think I've narrowed down which section of code is responsible for
> the generation of that link in the "action" column of the list, and
> have provided it along with the working code from the node view for
> comparison at http://drupalbin.com/4455. However, my PHP skills are
> terribly lacking, so when things get nested that far I just get
> totally lost, so what I'm hoping is that someone else can look at
> what's going on there and spot the problem.
>
>
More information about the development
mailing list