Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

#9646 closed Developer Task (Fixed)

MythXML Rewrite Tracking Ticket

Reported by: wagnerrp Owned by: dblain
Priority: minor Milestone: 0.25
Component: Bindings - XML/JSON Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no

Description (last modified by wagnerrp)

This ticket is to serve as bug tracking for the rewrite of the XML interface committed at 856b61b5378c .

Attachments (0)

Change History (8)

comment:1 Changed 3 years ago by wagnerrp

  • Description modified (diff)

comment:2 follow-up: Changed 3 years ago by wagnerrp

In Guide/GetProgramDetails?, Programs is included as an empty child of Channel.

comment:3 in reply to: ↑ 2 Changed 3 years ago by dblain

Replying to wagnerrp:

In Guide/GetProgramDetails?, Programs is included as an empty child of Channel.

Channel data sould not have been a child of Program...
Fixed in https://github.com/MythTV/mythtv/commit/30f26e095.

comment:4 Changed 3 years ago by Raymond Wagner

Updates XMLConnection and MythXML for support of the rewritten
interface. The _query, _queryObject, and _queryTree methods have been
removed in favor of a _request, which returns a modified urllib2.Request
object. The Request object can accept additional headers or post data,
and offers the following additional methods:

open() - return a file object to the response
read() - return the response as a text string
readXML() - return the response processed using XML etree
readJSON() - return the response processed as JSON data

refs #9646

Changeset: c542f3f7cdb0ddf91982a79efcfa33497231e979

comment:5 Changed 3 years ago by wagnerrp

Fixes parameter name issue with GetPreviewImage?.

The methods prototype as defined in the header file is used to supply the parameter names (uses moc's metadata) for web service calls.

Changeset: 1eb47901d83f8912f94df47228c55084edd3254e

comment:6 Changed 3 years ago by wagnerrp

Only the Myth wsdl page works. All other pages cause a segmentation fault in the backend.

#0  0x000000080ce78480 in ?? ()
No symbol table info available.
#1  0x0000000802b4c75a in Wsdl::CreateType (this=0x7fffff9fd0f0, pParent=0x0, sTypeName=@0x7fffff9fc520) at wsdl.cpp:400
        oTypeNode = {<QDomNode> = {impl = 0x80d00c420}, <No data fields>}
        oSeqNode = {<QDomNode> = {impl = 0x802b4c4b0}, <No data fields>}
        pMetaObject = Variable "pMetaObject" is not available.

comment:7 Changed 3 years ago by David Blain

Fixes seg fault in wsdl methods, however it still produces incorrect WSDL.:

refs #9646

Changeset: e7aa67b01647d664b284530a7a702bd7ae0dff58

comment:8 Changed 3 years ago by robertm

  • Resolution set to Fixed
  • Status changed from new to closed

I am tentatively closing this as the initial issues all seem to have been ironed out (and the API is being used to great effect in various places-- thanks David!)

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.