Mobile API upgrade for journals and sync'ing

Bug #1032420 reported by Alan McNatty
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Alan McNatty

Bug Description

It would be nice if the mobile API would support:

a) writing journals posts ..
b) attaching files to journal posts
c) syncing recent activity / unread inbox items
d) syncing tags
e) syncing file folders
f) syncing journals
g) syncing journal posts

Revision history for this message
Alan McNatty (alanmc) wrote :

Upgraded APIs to be added to /htdocs/api/mobile in the form of separate upload and sync apis.

Changed in mahara:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Alan McNatty (alanmc)
milestone: none → 1.6.0
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
importance: High → Wishlist
Revision history for this message
Alan McNatty (alanmc) wrote :

Resetting to high as this is a commissioned change

Changed in mahara:
importance: Wishlist → High
Changed in mahara:
importance: High → Wishlist
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1439
Committed: http://gitorious.org/mahara/mahara/commit/6c4da66afddce883c257cd4500fb310341208afe
Submitter: Alan McNatty (<email address hidden>)
Branch: master

commit 6c4da66afddce883c257cd4500fb310341208afe
Author: Alan McNatty <email address hidden>
Date: Thu Jul 26 11:48:54 2012 +1200

    Changes for Mobile API v2 (Bug #1032420)

    This mobile api is in 2 parts, a sync api and an upload api.

    The sync API allows mobile devices to read basic information for a user, such as:
    - notifications
    - blogs
    - blogposts
    - folders
    - tags
    It could be extended to provide a list of friends and contact information for mobile
    communication.

    The upload API is an extension of the original mobile API
    htdocs/artefact/file/mobileupload.php but also supports journals and attaching files
    to journal posts.

    This API is re-housed under the htdocs/api section and is design to deprecate
    htdocs/artefact/file/mobileupload.php

    The API may be extended to support messaging and commenting on blogposts in due course.

    Change-Id: Idb32712383f8feb7c12dc9cbcdfa54c38a8e4481
    Signed-off-by: Alan McNatty <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature1.6
Revision history for this message
Alan McNatty (alanmc) wrote :

Sadly the tightening of the param_ has left a bug .. the notifications field in the sync.php can be comma separated but comma is not part of param_alpha set so this field does indeed need to be param_variable ..

Revision history for this message
Alan McNatty (alanmc) wrote :

Fix posted to gerrit for review https://reviews.mahara.org/#/c/1487/1

Revision history for this message
Alan McNatty (alanmc) wrote :

Similar issues exist on with theupload api .. username for example cannot be alphanumext updating previous patch

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/1487
Committed: http://gitorious.org/mahara/mahara/commit/0edc705dfadc1de56690adb2abfaff370f2bba1b
Submitter: Hugh Davenport (<email address hidden>)
Branch: master

commit 0edc705dfadc1de56690adb2abfaff370f2bba1b
Author: Alan McNatty <email address hidden>
Date: Wed Aug 8 20:45:21 2012 +1200

    Fix param_ bugs for numerous fields in sync/upload (Bug #1032420)

    Sadly the tightening of the param_ has left several bugs ..
    i) some of the fields in the sync.php and upload.php are comma separated
    ii) usernames need to be param_variable
    iii) similarly free text entry forms such as journal titles and
    descriptions could contain variable characters.

    Change-Id: I93cd0209974de3be326701b8b54ea3c5f1019833
    Signed-off-by: Alan McNatty <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/1500
Committed: http://gitorious.org/mahara/mahara/commit/32c5415f52cd51daff2c870c8a3f27fa312247c9
Submitter: Hugh Davenport (<email address hidden>)
Branch: 1.6_STABLE

commit 32c5415f52cd51daff2c870c8a3f27fa312247c9
Author: Alan McNatty <email address hidden>
Date: Wed Aug 8 20:45:21 2012 +1200

    Fix param_ bugs for numerous fields in sync/upload (Bug #1032420)

    Sadly the tightening of the param_ has left several bugs ..
    i) some of the fields in the sync.php and upload.php are comma separated
    ii) usernames need to be param_variable
    iii) similarly free text entry forms such as journal titles and
    descriptions could contain variable characters.

    Change-Id: I93cd0209974de3be326701b8b54ea3c5f1019833
    Signed-off-by: Alan McNatty <email address hidden>

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status fixreleased
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAlCbHO8ACgkQuMoJ2LQ3zxH8TAP/YN4BiCJZsn5a899/0UzV31Qg
lM8LXAwZWa6zFv6t0BQUHCqe6eFK9wPp51qgCWWXjUZ3vvvVcsyeWp6626aBFKSU
pCQXI9E7huPw802nJQ9WcZXRBUmgw87ww72Tx4mybnu7SPSrkZgXdnPGSMwDs89N
oWvTpl7Xuac48e6p0lU=
=ouU+
-----END PGP SIGNATURE-----

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.