bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28910] Actions can be invoked for GSWHTMLBareString by using GSWCo


From: Sergey Golovin
Subject: [bug #28910] Actions can be invoked for GSWHTMLBareString by using GSWComponentContent
Date: Tue, 16 Feb 2010 10:27:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7

URL:
  <http://savannah.gnu.org/bugs/?28910>

                 Summary: Actions can be invoked for GSWHTMLBareString by
using GSWComponentContent
                 Project: GNUstep
            Submitted by: svg
            Submitted on: Втр 16 Фев 2010 14:27:46
                Category: gsweb
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

GSWHTMLBareString raises an exception in the method 

<-----------------------------------------------------------

-(GSWElement*)invokeActionForRequest:(GSWRequest*)request
                           inContext:(GSWContext*)context;

----------------------------------------------------------->

This is ok because actions make no sense for HTML strings. As a general rule
GSWeb prevents from calling that method except from GSWComponentContent. Here
is where the bug sits:

<-----------------------------------------------------------

  component=GSWContext_component(aContext);
  childTemplate=[component _childTemplate];
  parent=[component parent];
  [aContext _setCurrentComponent:parent];
  element=[childTemplate invokeActionForRequest:request
                           inContext:aContext];

----------------------------------------------------------->

GSWComponentContent calls the method without any checking for the child
template which can be GSWHTMLBareString.

There could be some checking on child template's class to avoid invoking and
raising an exception when the class is GSWHTMLBareString. See the proposed
patch.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Втр 16 Фев 2010 14:27:46  Name: GSWComponentContent.patch  Size:
2kB   By: svg
The patch
<http://savannah.gnu.org/bugs/download.php?file_id=19716>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28910>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]