Bug in XML-function getBookableRoutes

Information about the VA integration pack
Post Reply
MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Bug in XML-function getBookableRoutes

Post by MadJosch » Sat Dec 15, 2012 3:45 pm

Hi

I think I found a bug with the function getBookableRoutes
According to the wiki entry about the function it returns several codes about the success of the operation ( SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE ).
But if I try to book a flight when there is already one booked, the function does not return an appropriate code (e.g. FLIGHT BOOKED).
Instead it produces an error message

Code: Select all

Warning: DOMDocument::load() [domdocument.load]: Start tag expected, '<' not found in http://www.fsairlines.net/va_interface.php5?va_id=XXXX&function=getBookableRoutes&pilot_id=XXXXX
(remark: va_id and pilot_id effaced)


Regards
Jörg

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Bug in XML-function getBookableRoutes

Post by Konny » Sun Dec 16, 2012 4:28 pm

Ok, thanks for the hint. I will check that.
Konrad - FSAirlines Developer
Image

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Bug in XML-function getBookableRoutes

Post by Konny » Sat Jan 12, 2013 1:23 am

I found the problem and fixed it :)
Konrad - FSAirlines Developer
Image

MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Re: Bug in XML-function getBookableRoutes

Post by MadJosch » Mon Jan 14, 2013 3:38 pm

It looks like the problem only changed:

Code: Select all

Warning: DOMDocument::load() [domdocument.load]: XML declaration allowed only at the start of the document in http://www.fsairlines.net/va_interface.php5?va_id=XXXX&function=getBookableRoutes&pilot_id=XXXXX
Still no functionality. :-(

Regards, Jörg

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Bug in XML-function getBookableRoutes

Post by Konny » Sat Mar 02, 2013 2:10 am

Guess it should work now, I found a major bug in the code.
Konrad - FSAirlines Developer
Image

MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Re: Bug in XML-function getBookableRoutes

Post by MadJosch » Sat Mar 02, 2013 7:49 pm

Thank you very much, works like a charm.

Post Reply