bugGNUstep - Bugs: bug #35359, NSMutableURLRequest

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35359: NSMutableURLRequest

Submitted by:  Norbert Schneider <nschneider>
Submitted on:  Tue 24 Jan 2012 08:50:16 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 26 Jan 2012 08:01:36 PM UTC, comment #2:

Thanks ... that's fixed in svn trunk.

Richard Frith-Macdonald <CaS>
Project Member
Tue 24 Jan 2012 09:55:17 AM UTC, comment #1:

The call to gnutls_transport_set_lowat() has already been removed in the current SVN code for more recent versions of gnutls. This will be released with the upcoming new GNUstep version.

The problem with NSMutableURLRequest is a bug in the code. In the designated initialiser we test for the value of URL being of class NSURL while in init we set it to nil. We need an extra test here to allow for this case.

I would like to leave this change to Richard as I am not that comfortable with this class. A short look at the mutableCopyWithZone: method left me rather surprised.

Fred Kiefer <FredKiefer>
Project Member
Tue 24 Jan 2012 08:50:16 AM UTC, original submission:

n some code I had to deal with, there was this line:
NSMutableURLRequest *myRequest = [[NSMutableURLRequest alloc]init];

However, myRequest always was NULL. I changed as follows:
NSMutableURLRequest *myRequest = [NSMutableURLRequest alloc];

which seems to circumvent the problem.

I am using gnustep-startup-0.26.2

Is this a problem in Gnustep or in the Code I got?

I am using OpenSuse 12.1, gcc Version is 4.6.2

Note that gnustep-base did not build for me out of the box, because of this line in GSSocketStream.m:
linux-3n93:> diff GSSocketStream.m*
532c532
< //gnutls_transport_set_lowat (session, 0);
---

> gnutls_transport_set_lowat (session, 0);


gnutls_transport_set_lowat is deprecated, the call can be removed altogether I think.

Sorry, I first posted this in support.

Norbert Schneider <nschneider>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by nschneider (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Jan 2012 08:01:36 PM UTCCaSStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 24 Jan 2012 09:55:17 AM UTCFredKieferCategoryNone=>Base/Foundation
      Item GroupNone=>Bug
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1