Hi Sameera,
since I feared that some of my changes broke something, I tried
updating a "Gadget" using the Publisher gui with a stock 2.0.0 m4. I'm
able to update everything but the images (selected via the "Browse"
button). In the attached screenshot, I added a "Test" string to the
Description and I tried changing the images. The Description was
updated correctly, while the images have not been uploaded (the only
data which were updated were the file names).
The only hint in the log seems to be
[2015-01-21 16:11:34,277] WARN
{/extensions/assets/default/pages/details.jag} - Unable to retrieve
asset with id: d1bddd1b-e7bc-4c7b-b9ca-f158a73cdecd due to TypeError:
Cannot read property "id" from null
As even in my "unbounded tables branch" I have problems with the
images upload, I wonder whether something is broken with file uploads.
In a separate email I'll inform you about my efforts with the unbounded tables.
Best regards
Alessio
On Tue, Jan 20, 2015 at 7:32 PM, Sameera Medagammaddegedara
<[email protected]> wrote:
> Hi Alessio,
>
> The update handling logic is as follows:
>
> publisher/controllers/ref_apis_router.jag -->
> publisher/extensions/assets/default/apis/assets.jag -->
> /modules/asset_api.js
>
> The methods called in the asset_api.js can be found in
> {CARBON_HOME}/modules/rxt/scripts/asset/asset.js
>
>> I wonder whether asset update has already been fully implemented (meaning
>> that I'm doing something wrong) or this part has yet to be finalised
>
> The update functionality has been implemented and should be working
>
> Could you provide a bit of details on the use case that causes the error:
>
> Are you encountering this with one of the stock asset types shipped with the
> ES?
> If it is a new asset type could you please attach the rxt file and any
> extensions you have built for it (publisher/extensions/assets)
> Did this issue occur after the unbounded table changes?
>>
>> In case it's unimplemented I'm more than willing to contribute :)
>
> I believe this is a bug , but
>
>
>
> Thank You,
> Sameera
>
> On Tue, Jan 20, 2015 at 12:18 PM, Alessio Carenini
> <[email protected]> wrote:
>>
>> Hi all,
>> while trying to implement unbound tables in ES 2.0.0-M4, I noticed that
>> updating an asset containing images causes a File Upload exception
>>
>> [2015-01-20 18:03:23,860] ERROR
>> {org.jaggeryjs.hostobjects.web.RequestHostObject} - Stream closed
>> org.apache.commons.fileupload.FileUploadException: Stream closed
>> at
>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:385)
>>
>> In update-asset.js I see little code, so I wonder whether asset update has
>> already been fully implemented (meaning that I'm doing something wrong) or
>> this part has yet to be finalised. Is it a known bug? In case it's
>> unimplemented I'm more than willing to contribute :)
>>
>> Thank you in advance
>>
>> Alessio
>>
>> -------------------------------------------------------------------
>> Alessio Carenini
>> CEFRIEL - ICT Institute Politecnico di Milano
>> Via Fucini, 2 - 20133 Milano (Italy)
>> e: [email protected] - skype: ale.carenini
>> live messenger: [email protected] - w: www.cefriel.it
>> p: +39 0223954352 - f: +39 0223954352
>> ----------------------------------------------------------------
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: [email protected]
> Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev