Modify

Ticket #10 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Error invoking API Query Extension

Reported by: Sean.McClowry Owned by: Xiping.Wang
Priority: low Milestone: 1.1
Component: WikiExtensions Version: 1.0
Keywords: Cc:
Actual Effort (in hours): Estimated Effort (in hours):

Description (last modified by Sean.McClowry) (diff)

The latest version of the build broke the API Query extension.

This exception can be seen from the sample code that invokes the API query on the front page of a newly installed version of the build.

Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Empty string supplied as input in D:\xampp\htdocs\omcollabbuild2\wiki\extensions\APIQueryExtension\APIQueryExtension.php on line 113

This is the result of not being connected to the network. Defect is therefore minor although it should be fixed by erroring out gracefully.

If these bookmarks had been retrieved once, they are cached so error does not appear.

Attachments

Change History

comment:1 Changed 4 years ago by Sean.McClowry

  • Priority changed from major to minor
  • Description modified (diff)

comment:2 Changed 4 years ago by Andreas.rindler

  • Component changed from Wiki to WikiExtensions
  • Milestone changed from 1.0 to 1.1

comment:3 Changed 3 years ago by Sean.McClowry

  • Owner changed from Pete Dakin to Xiping.Wang

This should be fixed so that it is not tightly coupled and the API Query errors gracefully.

comment:4 Changed 3 years ago by Xiping.Wang

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

fix it. 1) provide a dummy content if network fail, so warning message will not be shown any longer. 2) decrease connection timeout to make page loading more friendly.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.