Git Product home page Git Product logo

maharadroid's People

Contributors

alanmcna avatar

Forkers

maharaproject

maharadroid's Issues

Review multiple file post - is the api robustly handling multi-file uploads

Currently the app splits multiple file uploads into a collection of single 
uploads and duplicates shared settings (journal name, entry, tags, etc). 

The api checks (on each upload - rather than just ones known to be multiples ;) 
if a duplicate post (by title/entry) already exists. If one does then the 
uploaded file is attached to the existing entry.

a) ideally pass additional (Part) and (Count) parameters in the post if the 
entry is part of a multiple upload. 

b) the api should if (Part) check for existing Journal post with provided 
details.

c) The api should not check if (Part) not provided - reducing load.

Original issue reported on code.google.com by [email protected] on 17 Jun 2012 at 12:58

Sharing a contact to MaharaDroid crshes the application

Go into contacts .. long press .. share and select MaharaDroid .. the 
application crashes

The problem seems to be with permissions...

10-28 20:17:55.986: DEBUG/ArtifactSettings(15841): Upload Conditions Confirmed: 
true
10-28 20:17:55.996: DEBUG/ArtifactSettings(15841): URI = 
'content://com.android.contacts/contacts/as_vcard/3565i70f8117308eae079'
10-28 20:17:56.006: ERROR/DatabaseUtils(15875): Writing exception to parcel
10-28 20:17:56.006: ERROR/DatabaseUtils(15875): java.lang.SecurityException: 
Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri 
content://com.android.contacts/contacts/as_vcard/3565i70f8117308eae079 from 
pid=15841, uid=10066 requires android.permission.READ_CONTACTS
10-28 20:17:56.006: ERROR/DatabaseUtils(15875):     at 
android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.
java:271)
10-28 20:17:56.006: ERROR/DatabaseUtils(15875):     at 
android.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:149)
10-28 20:17:56.006: ERROR/DatabaseUtils(15875):     at 
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:111)
10-28 20:17:56.006: ERROR/DatabaseUtils(15875):     at 
android.os.Binder.execTransact(Binder.java:288)
10-28 20:17:56.006: ERROR/DatabaseUtils(15875):     at 
dalvik.system.NativeStart.run(Native Method)

Original issue reported on code.google.com by [email protected] on 28 Oct 2010 at 7:19

java.lang.NullPointerException - Utils.canUpload()

v1.7 - Aug 9, 2011 10:45:48 AM - 0 reports/week 

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{nz.net.catalyst.MaharaDroid/nz.net.catalyst.MaharaDroid.ui.Artifac
tSettingsActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at nz.net.catalyst.MaharaDroid.Utils.canUpload(Utils.java:64)
at 
nz.net.catalyst.MaharaDroid.ui.ArtifactSettingsActivity.onCreate(ArtifactSetting
sActivity.java:117)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
... 11 more

Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 10:57

Sync timezone issues

Currently the lastsync time is recorded on the device .. we then ask the server 
for anything new since this last time. The problem is this is the time on the 
device which may be in a different timezone / locale (users don't often set 
this 100% accurately on mobiles). 

To fix this - get the sync api to respond with the current server time which we 
can save and use it's time as the offset - the devices time is irrelevant.

Original issue reported on code.google.com by [email protected] on 19 Jun 2012 at 10:03

OAuth rather than token based authentication?

Token based authentication is a easy first step for simple upload. If any more 
complicated read/write app to server communication is required then a more 
complete authentication mechanism could be looked at OAuth might be a good 
choice here.

Original issue reported on code.google.com by [email protected] on 21 Oct 2010 at 9:24

App crashes on upload (empty token?)

Exception class
java.lang.NullPointerException

Source method
RestClient.UploadArtifact()

java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
Caused by: java.lang.NullPointerException
at nz.net.catalyst.MaharaDroid.RestClient.UploadArtifact(RestClient.java:117)
at 
nz.net.catalyst.MaharaDroid.TransferService$UploadArtifactTask.doInBackground(Tr
ansferService.java:111)
at 
nz.net.catalyst.MaharaDroid.TransferService$UploadArtifactTask.doInBackground(Tr
ansferService.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 4 more

Original issue reported on code.google.com by [email protected] on 31 Oct 2010 at 10:09

[wishlist] write journal entries within app

I know this is a big ask, but it would be really useful to be able to write 
journal entries within the MaharaDroid app. This would allow offline creation 
of journal entries.

Original issue reported on code.google.com by [email protected] on 10 Nov 2011 at 12:49

android.database.CursorIndexOutOfBoundsException

v1.7 - Aug 17, 2011 9:50:16 PM - 0 reports/week - 2 reports

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{nz.net.catalyst.MaharaDroid/nz.net.catalyst.MaharaDroid.ui.Artefac
tExpandableListAdapterActivity}: 
android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a 
size of 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.access$2300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, 
with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
at 
android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.jav
a:214)
at 
android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:41
)
at android.database.CursorWrapper.getString(CursorWrapper.java:140)
at nz.net.catalyst.MaharaDroid.Utils.getFilePath(Utils.java:89)
at 
nz.net.catalyst.MaharaDroid.ui.ArtefactExpandableListAdapterActivity.loadSavedAr
tefacts(ArtefactExpandableListAdapterActivity.java:135)
at 
nz.net.catalyst.MaharaDroid.ui.ArtefactExpandableListAdapterActivity.onCreate(Ar
tefactExpandableListAdapterActivity.java:96)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
... 11 more

Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 10:55

Cannot upload content which has a space in the filename

What steps will reproduce the problem?
1. Create a file with a space in the file name
2. Upload the file

What is the expected output? What do you see instead?
Error message regarding cannot access file (on device .. file://sd/etc)




Original issue reported on code.google.com by [email protected] on 13 Dec 2010 at 2:42

java.lang.IllegalStateException - Activity.performRestart()

v1.7 - Jul 9, 2011 1:51:36 AM - 0 reports/week 

java.lang.RuntimeException: Unable to resume activity 
{nz.net.catalyst.MaharaDroid/nz.net.catalyst.MaharaDroid.ui.ArtefactExpandableLi
stAdapterActivity}: java.lang.IllegalStateException: trying to requery an 
already closed cursor
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2215)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2243)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1019)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:126)
at android.app.ActivityThread.main(ActivityThread.java:3997)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: trying to requery an already closed 
cursor
at android.app.Activity.performRestart(Activity.java:4343)
at android.app.Activity.performResume(Activity.java:4366)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2205)
... 10 more


Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 10:57

Upload files to a group

reported by Shane Nuessler at https://bugs.launchpad.net/mahara/+bug/1280062

It would be great if you were able to upload a file directly into one of your 
groups.

Original issue reported on code.google.com by [email protected] on 2 Mar 2014 at 3:55

No scrolling in landscape mode on upload page

On HTC Desire when the phone is in landscape mode, only the fields for file 
name and description are shown. Tags can be entered but barely. I can't get to 
the "Done" button but have to switch to portrait mode.

Original issue reported on code.google.com by [email protected] on 14 Nov 2010 at 6:57

Sync more efficiently (maybe)

Currently Utils.updateListPreferenceFromJSON deletes and re-inserts all new 
sync'ed tags/folders, etc .. ideally, either
a) the sync API should return only changes since last request (proper sync 
api),or
b) the app needs to be smart enough to make old items - add new ones and delete 
no items no longer present.

Original issue reported on code.google.com by [email protected] on 17 Jun 2012 at 12:50

Camera image capture doesn't work

From main or details UI select options - camera and take a photo .. there is no 
effect on operation the image is not passed or is the image changed.

Either get it operational or drop from current release

Original issue reported on code.google.com by [email protected] on 17 Jun 2012 at 12:46

MaharaDroid doesn't work when user doesn't have any tags

Report on https://bugs.launchpad.net/mahara/+bug/1268786 :

This is an issue as a fresh user has no tags, workaround is to make a single 
tag, which then fixes it, error log below

 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] [WAR] 88 (api/mobile/sync.php:77) Invalid argument supplied for foreach()
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] Call stack (most recent first):
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77) at /home/demo/code/mahara/htdocs/lib/errors.php:430
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88] * error(2, "Invalid argument supplied for foreach()", "/home/demo/code/mahara/htdocs/api/mobile/sync.php", 77, array(size 59)) at /home/demo/code/mahara/htdocs/api/mobile/sync.php:77
 [Tue Jan 14 11:07:18 2014] [error] [client 10.22.33.88]

Original issue reported on code.google.com by [email protected] on 24 Aug 2014 at 4:10

Remove old account if the username is changed

If the username is changed we need to remove any existing accounts before 
trying to authenticate / create a new one. 

It is confusing for the user to have to try and do this themselves.

Original issue reported on code.google.com by [email protected] on 19 Jun 2012 at 2:21

MaharaDroid reports success when uploading to the wrong page

If you enter an Upload URI which is an actual webpage, but not a mahara 
mobileupload page, MaharaDroid gets an http OK status code, reports that your 
file was uploaded successfully, and resets its token to the html contents of 
that page.

In the next version, Mahara should probably return something with a bit of 
structure (json object?), with its own status code, message, token, etc., so 
MaharaDroid can report a useful error if it receives something unexpected.

[You don't actually have to mistype the URI to have this problem, any kind of 
redirect to a valid page will do it, for example if your phone connects to an 
open but paid wifi network that redirects all requests to a "top up your data" 
page.]

Original issue reported on code.google.com by [email protected] on 22 Nov 2010 at 9:18

Crash with bogus upload URL

What steps will reproduce the problem?
1. Enter an invalid URL as a Mahara upload URL
2. Upload a file

An IllegalArgumentException is raised in RestClient when 
httpclient.execute(httppost);

Original issue reported on code.google.com by [email protected] on 15 Feb 2011 at 10:31

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.