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

 
 

bug #56623: webread with one argument errors on varargin

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Thanks, works for me

Mike Miller <mtmiller>
Project Administrator
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>
Project 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>
Project Administrator

 

(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)
  •  

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

    Only project 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.5