jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kalle Malin <kalle.ma...@surveypal.com>
Subject VS: VS: Setting Content-Disposition header containing Finnish alphabets å, ä or ö
Date Tue, 07 Jan 2014 09:56:24 GMT
I manage to setup logging. Based on the log of Content-Disposition it seems fine.

Code used to create and set Content-Disposition in short:

final SwiftObject object = cloudFilesClient.newSwiftObject();
object.setPayload(new ProgressInputStream(fileUpload, uploadProgress));
filename=\"{0}\"", fileName));

Jclouds log for Content-Disposition shows:

2014-01-07 11:40:44.762 org.jclouds.logging.slf4j.SLF4JLogger.logDebug:59 [main]
DEBUG: >> Content-Disposition: attachment; filename="cöwböys änd åliens.png"

That was the only reference of Content-Disposition in the log.

And the result for Content-Disposition "cöwböys änd åliens.png" in the Rackspace cdn Content-Disposition
is "cöwböys änd åliens.png".

I tried setting the cdn file name to "cöwböys änd åliens.png" and that works. So only
header gets malformed.

- Kalle -

Lähettäjä: Andrew Phillips [andrewp@apache.org]
Lähetetty: 7. tammikuuta 2014 11:38
Vastaanottaja: user@jclouds.apache.org
Aihe: Re: VS: Setting Content-Disposition header containing Finnish     alphabets å, ä or

> then I will familiarize myself with either of those. Basically I
> have just followed the upload by the way provided in examples and
> tried both SwiftObject and Blobs.

Do you mean the examples in the jclouds-examples repo [1]? As far as
configuring logging, this good blog by Everett might help [2].


[1] https://github.com/jclouds/jclouds-examples
[2] http://blog.phymata.com/2012/08/18/logging-in-jclouds/

View raw message