[RESOLVED] menu type 'web link submission' ignores access level 'public'

Locked
bikeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Wed Jul 25, 2007 7:53 am

[RESOLVED] menu type 'web link submission' ignores access level 'public'

Post by bikeman » Tue Oct 09, 2007 9:00 pm

Problem: menu type 'web link submission' ignores access level setting 'public'

Replicate:
Create new menu item 'submit link' as type 'web link submission layout'
Setting access level = PUBLIC
Browse to front end and click 'submit link' menu
Taken to 403 - Access Denied! page

Public setting should allow access to page.
Last edited by Anonymous on Fri Oct 12, 2007 12:50 pm, edited 1 time in total.

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: menu type 'web link submission' ignores access level 'public'

Post by Jinx » Tue Oct 09, 2007 11:05 pm

Not a bug, know issue.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: menu type 'web link submission' ignores access level 'public'

Post by mcsmom » Tue Oct 09, 2007 11:56 pm

I think that you must be registered to submit a web link.

The problem is that a public menu link is made to a registered location.

The location is still registered, even though the weblink is not.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

bikeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Wed Jul 25, 2007 7:53 am

Re: menu type 'web link submission' ignores access level 'public'

Post by bikeman » Wed Oct 10, 2007 7:30 am

If the submit link goes to a registered location and is not available to public users, then the menu type 'web link submission layout' should have the setting access level = PUBLIC grey'd out or removed.

Clearly a user cannot be expected to remember each and every admin setting in joomla that doesn't work/is not supported.

AND

Whether the user is logged in or not makes no difference... all users get sent to 403
Last edited by bikeman on Wed Oct 10, 2007 10:08 am, edited 1 time in total.

bikeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Wed Jul 25, 2007 7:53 am

Re: menu type 'web link submission' ignores access level 'public'

Post by bikeman » Fri Oct 12, 2007 10:43 am

Actually registered users cannot submit web links, only special users can do this. This is probably not how it's intended to work - at least no one has clarified this point previously.

I live in hope that joomla functionality will oneday be specified somewhere and not just vary depending upon the last developer who touches the code.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: menu type 'web link submission' ignores access level 'public'

Post by mcsmom » Fri Oct 12, 2007 12:09 pm

It's supposed to be that registered can submit weblinks and authors and above can submit content.  It even says this in the tool tip when you create the link.

I can confirm that registered users are getting a 404 on  clicking the submit  llink.


components\com_weblinks\views\weblink\view.html.php

// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 19) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}


Shouldn't it be < 30? (stupi)
Shouldn't it be <18


Update:

But also, isn't gid gone and replaced by group_id?
Last edited by mcsmom on Fri Oct 12, 2007 12:26 pm, edited 1 time in total.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

bikeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Wed Jul 25, 2007 7:53 am

Re: menu type 'web link submission' ignores access level 'public'

Post by bikeman » Fri Oct 12, 2007 12:17 pm

at last acceptance that there is a problem  :pop

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: menu type 'web link submission' ignores access level 'public'

Post by mcsmom » Fri Oct 12, 2007 12:29 pm

No, I don't count for that.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

user deleted

Re: menu type 'web link submission' ignores access level 'public'

Post by user deleted » Fri Oct 12, 2007 12:50 pm

Hi Elin,

Thanks for looking into this, I'll have a look asap at the code you provided.

bikeman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Wed Jul 25, 2007 7:53 am

Re: menu type 'web link submission' ignores access level 'public'

Post by bikeman » Fri Oct 12, 2007 6:39 pm

bikeman wrote: registered users cannot submit web links, only special users can do this.
mcsmom wrote: It's supposed to be that registered can submit weblinks .. It even says this in the tool tip when you create the link.
how exactly dont you agree then?
Last edited by bikeman on Fri Oct 12, 2007 6:43 pm, edited 1 time in total.

User avatar
moijafcor
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Thu Mar 02, 2006 9:41 am
Location: Santo Domingo, Dominican Republic
Contact:

Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ

Post by moijafcor » Mon Oct 15, 2007 6:03 am

bikeman wrote: Problem: menu type 'web link submission' ignores access level setting 'public'
Sometime ago, on this post I asked for this Web Link engineering issue to be added as a Feature Request for a full change of its logic. As Elin kindly explained there, the way it works and the issues arisen by its behavior are inherited since the Mambo days.

Sure someday this will be properly redesigned.  ;)

Saludos.
Nicht mehr!
Los acentos en castellano omitidos intencionalmente. | Les accents et les signes en français omis intentionnellement.
http://bio.moisesjafet.com

albenda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Thu Aug 16, 2007 10:26 pm

Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ

Post by albenda » Tue Oct 23, 2007 1:57 am

So, is there a fix?  I think I have a similar problem. 
From registered User menu trying to submit a weblink  goes to http://mywebsite.com/index.php?option=c ... &Itemid=52

I get ----  403 - Access Denied!

Shaella
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Apr 18, 2007 6:17 pm

Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ

Post by Shaella » Fri Oct 26, 2007 2:20 pm

albenda wrote: So, is there a fix?  I think I have a similar problem. 
I had the same problem, so I edited the code mentioned/suggested above, and that fixed it:

-----------------
components\com_weblinks\views\weblink\view.html.php

// Make sure you are logged in and have the necessary access rights
      if ($user->get('gid') < 18) {
        JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
        return;
      }
---------------

I checked yesterday's nightly build (haven't downloaded last night's yet), and that fix wasn't in there yet, but it's easy to make the change manually for now.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ

Post by mcsmom » Sat Nov 17, 2007 2:38 am

Could someone take a look and commit this if it is correct?

This is #7467 in the tracker
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

User avatar
tcp
Joomla! Ace
Joomla! Ace
Posts: 1548
Joined: Wed Sep 21, 2005 9:25 am
Location: Thailand
Contact:

Re: [CONFIRMED: FIX?] menu type 'web link submission' ignores access level 'publ

Post by tcp » Thu Nov 29, 2007 7:55 pm

mcsmom wrote: Could someone take a look and commit this if it is correct?

This is #7467 in the tracker
Updated in Rev 9462.

Registered users are not allowed to submit articles or weblinks.  This is a known problem that will be addressed in more detail in a future version.  For the time being, I've modified the sample data so that these links are show only for special users and not for registered users.

In reality there needs to be more sophisticated controls about this.  In the short-term, the components com_content and com_weblinks could offer a preference that allows registered users to submit information, but before that happens we really need to look at the code for potential security vulnerabilities.

tcp
Your solution for a single-page checkout on any website.
http://moolah-ecommerce.com

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: [RESOLVED] menu type 'web link submission' ignores access level 'public'

Post by mcsmom » Fri Nov 30, 2007 9:20 pm

Well, in reality, since you can set global configuration to make all users authors, if you want to have people submit both, that is fairly simple.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Locked

Return to “Q&T 1.5.x Resolved”