bugGNU Octave - Bugs: bug #56623, webread with one argument errors...

 
 

bug #56623: webread with one argument errors on varargin

Submitter:  Mike Miller <mtmiller>
Submitted:  Fri 12 Jul 2019 08:28:11 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jul 2019 11:12:45 PM UTC, comment #2: 

Thanks, works for me

Mike Miller <mtmiller>
Group Member
Fri 12 Jul 2019 10:35:47 PM UTC, comment #1: 

Simple.  I checked in a change here (https://hg.savannah.gnu.org/hgweb/octave/rev/7c778a102de8).  The following test now works.


resp = webread ("www.octave.org");



Rik <rik5>
Group administrator
Fri 12 Jul 2019 08:28:11 PM UTC, original submission:  

The webread function docstring says it can be called with just one URL argument. However,


>> webread ('http://www.example.org/')
error: varargin(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
    webread at line 51 column 3


This looks like it should be easy to fix with some nargin checks.

Mike Miller <mtmiller>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-12 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2019-07-12 mtmiller Carbon-CopyRemoved 80942 -

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code