Bug #2791

issue with posting to IBA's Globaleaks

Added by n8fr8 about 4 years ago. Updated over 2 years ago.

Status:RejectedStart date:12/19/2013
Priority:HighDue date:12/19/2013
Assignee:harlo% Done:

0%

Category:-
Target version:InformaCam - APP Public Beta v2
Component:

Description

12-19 09:42:05.943: D/************************** TRANSPORT ******************(14026): globaleaks
12-19 09:42:05.943: D/************************** TRANSPORT ******************(14026): onHandleIntent called
12-19 09:42:06.473: D/************************** TRANSPORT ******************(14026): TRANSPORT:
12-19 09:42:06.473: D/************************** TRANSPORT ******************(14026): {"id":"382d8394b38f65a3ca166636241e6c1a","associatedNotification":{"timestamp":1387464125544,"content":"You have sent your credentials to Intenational Bar Association.","taskComplete":false,"_id":"1387464125544","iconSource":201,"canRetry":false,"label":"Key Sent","type":600},"organization":{"publicKey":"\/organizations\/4179c618ef8f81a13e8e3363e3d2ac82bc51df05.asc","organizationDetails":"London, UK","organizationFingerprint":"4179c618ef8f81a13e8e3363e3d2ac82bc51df05","repositories":[{"source":"globaleaks","asset_id":"5752a225-1c88-4f8b-9581-f45029ff1b84","asset_root":"http:\/\/v7gi7jt5b4ceo2jb.onion"}],"organizationName":"Intenational Bar Association","forms":[{"path":"\/forms\/9901071a1c2cf89acbf0e677ec912608.xml","title":"iWitness Free Text Annotations","namespace":"iWitness Free Text Annotations"},{"path":"\/forms\/34612c27cbe788c261378977b66fbd72.xml","title":"iWitness Free Audio Annotation","namespace":"iWitness Free Audio Annotation"},{"path":"\/forms\/397ae088b0732758e6d8723fa2a101e5.xml","title":"iWitness v 1.0","namespace":"iWitness v 1.0"}]},"asset":{"assetName":"publicCredentials","mimeType":"application\/zip","assetPath":"publicCredentials"},"isHeld":false,"resultCode":403,"numTries":0,"method":2}
12-19 09:42:06.774: D/************************** TRANSPORT ******************(14026): {"finalize":false,"files":[],"wb_fields":{},"context_gus":"5752a225-1c88-4f8b-9581-f45029ff1b84","receivers":[]}
12-19 09:42:06.774: D/************************** TRANSPORT ******************(14026): LETS CONNECT TO http://v7gi7jt5b4ceo2jb.onion/submission
12-19 09:42:06.784: D/************************** TRANSPORT ******************(14026): URL PROTOCOL: http
12-19 09:42:06.784: D/************************** TRANSPORT ******************(14026): AND USING TOR PROXY
12-19 09:42:06.864: D/dalvikvm(14026): GC_FOR_ALLOC freed 1218K, 11% free 12726K/14248K, paused 29ms, total 29ms
12-19 09:42:37.917: D/************************** TRANSPORT ******************(14026): RESPONSE CODE: 201
12-19 09:42:37.917: D/************************** TRANSPORT ******************(14026): RESPONSE MSG: Created
12-19 09:42:38.157: D/************************** TRANSPORT ******************(14026): {"wb_fields": {}, "pertinence": "0", "receivers": [], "expiration_date": "2014-01-03T14:42:25.556846", "access_limit": 500, "receipt": "", "context_gus": "5752a225-1c88-4f8b-9581-f45029ff1b84", "creation_date": "2013-12-19T14:42:25.556883", "mark": "submission", "download_limit": 3, "submission_gus": "944c6f43-0c6f-4219-8ad0-6dc4397f457b", "escalation_threshold": "0", "id": "944c6f43-0c6f-4219-8ad0-6dc4397f457b", "files": []}
12-19 09:42:38.237: D/************************** TRANSPORT ******************(14026): LETS CONNECT TO http://v7gi7jt5b4ceo2jb.onion/submission/944c6f43-0c6f-4219-8ad0-6dc4397f457b/file
12-19 09:42:38.237: D/************************** TRANSPORT ******************(14026): URL PROTOCOL: http
12-19 09:42:38.237: D/************************** TRANSPORT ******************(14026): AND USING TOR PROXY
12-19 09:42:38.247: I/Posix(14026): path: /publicCredentials 0 0
12-19 09:42:38.247: I/Posix(14026): sqlfs_proc_open
12-19 09:42:38.327: D/******************** InformaCam : Storage ************(14026): getting Stream (publicCredentials) available: 7349
12-19 09:42:40.490: D/************************** TRANSPORT ******************(14026): RESPONSE CODE: 201
12-19 09:42:40.490: D/************************** TRANSPORT ******************(14026): RESPONSE MSG: Created
12-19 09:42:40.620: D/************************** TRANSPORT ******************(14026): {"files": [{"name": "publicCredentials", "creation_date": "2013-12-19T14:42:28.017197", "elapsed_time": 0.010950088500976562, "sha2sum": "8550e13287fa07584ee02e395a3b7965b0d4ffaca7c71dc4c8a65a0fc588337a", "content_type": "application/zip", "mark": "not processed", "id": "f8b9406b-8c98-47ab-9d31-4ebfd052526f", "size": 7349}]}
12-19 09:42:40.650: D/************************** TRANSPORT ******************(14026): LETS CONNECT TO http://v7gi7jt5b4ceo2jb.onion/receivers
12-19 09:42:40.650: D/************************** TRANSPORT ******************(14026): URL PROTOCOL: http
12-19 09:42:40.650: D/************************** TRANSPORT ******************(14026): AND USING TOR PROXY
12-19 09:42:42.412: D/************************** TRANSPORT ******************(14026): RESPONSE CODE: 200
12-19 09:42:42.412: D/************************** TRANSPORT ******************(14026): RESPONSE MSG: OK
12-19 09:42:42.522: D/************************** TRANSPORT ******************(14026): [{"update_date": "2013-12-16T22:01:08.475515", "name": "eyeWitness", "tags": [], "contexts": ["5752a225-1c88-4f8b-9581-f45029ff1b84"], "receiver_level": 1, "creation_date": "2013-12-11T10:58:37.261423", "can_delete_submission": false, "receiver_gus": "c96732a5-e946-4b22-bd5a-e04bee604ac9", "description": ""}]
12-19 09:42:42.562: D/************************** TRANSPORT ******************(14026): ABOUT TO PUT SUBMISSION:
12-19 09:42:42.562: D/************************** TRANSPORT ******************(14026): {"files":[],"wb_fields":{"Full description":"PGP Fingerprint 2820b14c6a83f3484ad671010a46af0d334ca868","Short title":"InformaCam submission from mobile client fffff"},"submission_gus":"944c6f43-0c6f-4219-8ad0-6dc4397f457b","receipt":"","mark":"submission","download_limit":3,"context_gus":"5752a225-1c88-4f8b-9581-f45029ff1b84","access_limit":500,"escalation_threshold":"0","receivers":["c96732a5-e946-4b22-bd5a-e04bee604ac9"],"id":"944c6f43-0c6f-4219-8ad0-6dc4397f457b","creation_date":"2013-12-19T14:42:25.556883","pertinence":"0","expiration_date":"2014-01-03T14:42:25.556846","finalize":true}
12-19 09:42:42.562: D/************************** TRANSPORT ******************(14026): LETS CONNECT TO http://v7gi7jt5b4ceo2jb.onion/submission/944c6f43-0c6f-4219-8ad0-6dc4397f457b
12-19 09:42:42.562: D/************************** TRANSPORT ******************(14026): URL PROTOCOL: http
12-19 09:42:42.562: D/************************** TRANSPORT ******************(14026): AND USING TOR PROXY
12-19 09:42:44.294: D/************************** TRANSPORT ******************(14026): RESPONSE CODE: 412
12-19 09:42:44.294: D/************************** TRANSPORT ******************(14026): RESPONSE MSG: Precondition Failed
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): java.io.FileNotFoundException: http://v7gi7jt5b4ceo2jb.onion/submission/944c6f43-0c6f-4219-8ad0-6dc4397f457b
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): java.io.FileNotFoundException: http://v7gi7jt5b4ceo2jb.onion/submission/944c6f43-0c6f-4219-8ad0-6dc4397f457b
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at org.witness.informacam.transport.Transport.doPut(Transport.java:359)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at org.witness.informacam.transport.GlobaleaksTransport.init(GlobaleaksTransport.java:146)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at org.witness.informacam.transport.Transport.onHandleIntent(Transport.java:489)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at android.os.Handler.dispatchMessage(Handler.java:102)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at android.os.Looper.loop(Looper.java:136)
12-19 09:42:44.304: E/************************** TRANSPORT ******************(14026): at android.os.HandlerThread.run(HandlerThread.java:61)

History

#1 Updated by n8fr8 about 4 years ago

log output from globaleaks... looks like a form issue:

2013-12-19 14:50:16+0000 [-] switching group privileges since 0 to 1337
2013-12-19 14:50:16+0000 [-] switching user privileges since 0 to 1337
2013-12-19 14:50:16+0000 [-] [ ] GLBackend is now running
2013-12-19 14:50:16+0000 [-] [ ] Visit http://127.0.0.1:8082 to interact with me
2013-12-19 14:50:16+0000 [-] [ ] Visit http://localhost:8082 to interact with me
2013-12-19 14:54:07+0000 [-] [http] 201 POST /submission (127.0.0.1) 19.71ms
2013-12-19 14:54:10+0000 [-] [http] 201 POST /submission/e340b0d6-3b86-4a07-a79a-2ab52ac51454/file (127.0.0.1) 1627.25ms
2013-12-19 14:54:12+0000 [-] [http] 200 GET /receivers (127.0.0.1) 4.93ms
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] /[!] Submission contain an unexpected field Full description/
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] [GLE] Submission do not validate the input fields [Submitted field /Full description/ not expected in context] (code 22 http 412)
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] /[!] Submission update: fields validation fail: GLException/
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] Traceback (most recent call last):
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] File "/usr/lib/python2.7/dist-packages/globaleaks/handlers/submission.py", line 272, in update_submission
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] fo.validate_fields(wb_fields, strict_validation=finalize)
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] File "/usr/lib/python2.7/dist-packages/globaleaks/utils/structures.py", line 152, in validate_fields
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] raise SubmissionFailFields("Submitted field /%s/ not expected in context" % key)
2013-12-19 14:54:14+0000 [GLHTTPServer,3,127.0.0.1] SubmissionFailFields: GLException
2013-12-19 14:54:14+0000 [-] [ ] 412 PUT /submission/e340b0d6-3b86-4a07-a79a-2ab52ac51454 (127.0.0.1): GLException
2013-12-19 14:54:14+0000 [-] [http] 412 PUT /submission/e340b0d6-3b86-4a07-a79a-2ab52ac51454 (127.0.0.1) 318.14ms
root@nigel-PowerEdge-860:/var/globaleaks/log# f

#2 Updated by n8fr8 over 2 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF