Issue Details (XML | Word | Printable)

Key: LIBOMV-331
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: John Hurliman
Reporter: stormbringer blackflag
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
libopenmetaverse

Unable to upload images (Content-Length not set)

Created: 28/Jul/08 08:05 PM   Updated: 29/Jul/08 02:34 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.6.0

Environment: Mono / OSX
Steps to Reproduce:
Download and install the above versions of libsl and mono on OS X 10.4.11.

Start the SLImageUpload.exe using Mono.

Log in and select an image to upload. Click "Upload image" and the error will appear.



 Description  « Hide
Using libsl 0.5.0 and mono 1.9.1 on OS X 10.4.11, image uploads fail with the following error:
[INFO] Uploading to folder 6eb85263-086b-4566-9fb1-8faed473f116
[INFO] Inventory upload completed.
[ERROR] Asset upload failed: Content-Length not set

The image actually does end up in the images folder in my inventory, but since I get an error instead of an asset ID I can't use it programmatically.



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
stormbringer blackflag added a comment - 28/Jul/08 08:15 PM
Here's the log from an upload attemopted with TestClient:

1 avatars online> uploadimage megapope 60000 /Users/fx/Desktop/megapopetexture.png
Loading image /Users/fx/Desktop/megapopetexture.png
Finished compressing image to JPEG2000, uploading...
211879 [1] DEBUG - New CAPS request to https://sim5666.agni.lindenlab.com:12043/cap/bfb7db78-8f09-dd3c-3adf-b7f33d2211db initiated
Texture upload failed: 00000000-0000-0000-0000-000000000000
1 avatars online> 212734 [19] DEBUG - CreateItemFromAsset: uploading to https://sim5666.agni.lindenlab.com:12043/cap/a9a4ee95-473b-8787-55c1-99e171d1a0ea
212735 [19] DEBUG - New CAPS request to https://sim5666.agni.lindenlab.com:12043/cap/a9a4ee95-473b-8787-55c1-99e171d1a0ea initiated
Texture upload: 4096 / 13052
Texture upload: 4096 / 13052
Texture upload: 4096 / 13052
Texture upload: 764 / 13052
212860 [20] DEBUG - Caps error at https://sim5666.agni.lindenlab.com:12043/cap/a9a4ee95-473b-8787-55c1-99e171d1a0ea: Content-Length not set
RequestCreateItemFromAsset() returned: Success=False, Status=Content-Length not set, ItemID=00000000-0000-0000-0000-000000000000, AssetID=00000000-0000-0000-0000-000000000000
Upload took 00:00:00.9816780


stormbringer blackflag added a comment - 28/Jul/08 08:43 PM
Now with stack trace!

1 avatars online> uploadimage megapope 60000 /Users/fx/Desktop/megapopetexture.png
Loading image /Users/fx/Desktop/megapopetexture.png
Finished compressing image to JPEG2000, uploading...
85785 [1] DEBUG - New CAPS request to https://sim5666.agni.lindenlab.com:12043/cap/c17bc154-b923-63df-1933-bd2de4a14227 initiated
86483 [17] DEBUG - CreateItemFromAsset: uploading to https://sim5666.agni.lindenlab.com:12043/cap/e9db476a-a6ae-e689-fdce-5d6205f79575
86484 [17] DEBUG - New CAPS request to https://sim5666.agni.lindenlab.com:12043/cap/e9db476a-a6ae-e689-fdce-5d6205f79575 initiated
Texture upload: 4096 / 13052
Texture upload: 4096 / 13052
Texture upload: 4096 / 13052
Texture upload: 764 / 13052
86609 [18] DEBUG - Caps error at https://sim5666.agni.lindenlab.com:12043/cap/e9db476a-a6ae-e689-fdce-5d6205f79575: at System.Net.HttpWebRequest.BeginGetResponse (System.AsyncCallback callback, System.Object state) [0x00000]
at System.Net.HttpWebRequest.GetResponse () [0x00000]
at libsecondlife.Capabilities.CapsBase.UploadDataCore (System.Uri address, System.String method, System.Byte[] data, System.Object userToken) [0x00000]
at libsecondlife.Capabilities.CapsBase+<>c_CompilerGenerated16.<UploadDataAsync>c_54 (System.Object state) [0x00000]
RequestCreateItemFromAsset() returned: Success=False, Status=Content-Length not set, ItemID=00000000-0000-0000-0000-000000000000, AssetID=00000000-0000-0000-0000-000000000000
Upload took 00:00:00.8308010
Texture upload failed: 00000000-0000-0000-0000-000000000000


Jim Radford added a comment - 28/Jul/08 11:26 PM
This is also not working with mono under linux (x86_64) using trunk r2017

1 avatars online> uploadimage testlibsl 100000 dvpress.jpg
uploadimage testlibsl 100000 dvpress.jpg
Loading image dvpress.jpg
Finished compressing image to JPEG2000, uploading...
81862 [1] DEBUG - New CAPS request to https://sim4264.agni.lindenlab.com:12043/cap/749c73e6-d274-7fac-055c-706573343119 initiated
83063 [21] DEBUG - CreateItemFromAsset: uploading to https://sim4264.agni.lindenlab.com:12043/cap/53b5cae6-b53e-9290-cded-d8e6bd439f33
83064 [21] DEBUG - New CAPS request to https://sim4264.agni.lindenlab.com:12043/cap/53b5cae6-b53e-9290-cded-d8e6bd439f33 initiated
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 4096 / 49422
Texture upload: 270 / 49422
83693 [22] DEBUG - Caps error at https://sim4264.agni.lindenlab.com:12043/cap/53b5cae6-b53e-9290-cded-d8e6bd439f33: Content-Length not set
RequestCreateItemFromAsset() returned: Success=False, Status=Content-Length not set, ItemID=00000000-0000-0000-0000-000000000000, AssetID=00000000-0000-0000-0000-000000000000
Upload took 00:00:01.8321390
Texture upload failed: 00000000-0000-0000-0000-000000000000


John Hurliman added a comment - 29/Jul/08 02:34 PM
Fixed in r2020 with a runtime check.