Piwigo Bugtracker

Viewing Issue Advanced Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002648 [Piwigo] web API major have not tried 2012.06.07 15:07 2012.06.07 15:13
Reporter plg View Status public  
Assigned To plg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 2.3.5 Product Version 2.3.4
  Target Version 2.3.5 Product Build
Summary 0002648: pwg.categories.getList returns nothing
Description After investigation, when called pwg.categories.getList it sometimes returns nothing because the output starts with:

Notice: Undefined index: in /home/pierrick/public_html/piwigo/dev/branches/2.3/include/ws_functions.inc.php on line 720

... which is not a JSON string and it makes parsing impossible!

this is due to missing representative_picture_id for an album, which is not a real problem. We should just avoid to throw an error.
Steps To Reproduce
Additional Information
Tags No tags attached.
browser any
Database engine and version
PHP version
Web server Apache 1.3.x
Attached Files

- Relationships

-  Notes
(0006341)
svn (reporter)
2012.06.07 15:08

[Subversion] r15585 by plg on branch 2.3

-----[Subversion commit log]----------------------------------------------------
bug 2648 fixed: pwg.categories.getList, avoid to throw an error when
representative_picture_id is missing for an album, which makes parsing
the JSON output impossible.
(0006342)
svn (reporter)
2012.06.07 15:09

[Subversion] r15586 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r15585 from branch 2.3 to trunk

bug 2648 fixed: pwg.categories.getList, avoid to throw an error when
representative_picture_id is missing for an album, which makes parsing
the JSON output impossible.


- Issue History
Date Modified Username Field Change
2012.06.07 15:07 plg New Issue
2012.06.07 15:07 plg Status new => assigned
2012.06.07 15:07 plg Assigned To => plg
2012.06.07 15:07 plg browser => any
2012.06.07 15:07 plg Web server => Apache 1.3.x
2012.06.07 15:08 svn Checkin
2012.06.07 15:08 svn Note Added: 0006341
2012.06.07 15:09 svn Checkin
2012.06.07 15:09 svn Note Added: 0006342
2012.06.07 15:13 plg Status assigned => closed
2012.06.07 15:13 plg Resolution open => fixed
2012.06.07 15:13 plg Fixed in Version => 2.3.5


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Contact
Powered by Mantis Bugtracker