Bug#794298: asciinema: broken, Unable to upload

2015-08-06 Thread Marcin Kulik
It should be:

[api]
url = https://asciinema.org

(no „www.”, and the „url =” is needed too)

See https://asciinema.org/docs/config for config syntax.

Marcin

On Tue, 4 Aug 2015 10:28:47 + Daniel Shahaf wrote:
 gustavo panizzo wrote on Tue, Aug 04, 2015 at 00:05:46 +0800:
  being so simple to fix, wouldn't be more easy just to configure it on
  config file
   
  [api]
  https://asciinema.org
  
 This works for me: using asciinema 0.9.8-1 and python3-openssl 0.14-1,
 and the following ~/.asciinema/config, uploads work.
  
 [[[
 [user]
  
 [api]
 token = 5539660d-91c0-4a29-975c-6ecb14523fce
 https://www.asciinema.org/
 ]]]
  
 Uploads also work if I delete the last line, but not if I prefix url = 
 to it (in that case I get the original error again).
  
 Thanks,
  
 Daniel
  
  I was expecting something more difficult, I will contact my sponsor to
  get the fix out (for default configs)
  
  

-- 
Marcin


Bug#794298: asciinema: broken, Unable to upload

2015-08-03 Thread Marcin Kulik
I’m attaching this simple patch (created with `git diff https.patch`).

-- 
Marcin

W dniu 3 sierpnia 2015 @ 04:29:36, gustavo panizzo (g...@zumbi.com.ar) 
napisał(a):

On Sun, Aug 02, 2015 at 02:42:18 +0200, Marcin Kulik wrote:  

 These issues (https, saving to tmp file) has been addressed in 0.9.9 (the 
 latest version is 1.1.1 btw).  
 Versions 0.9.8 also use documented, open format for the recordings.  
  
 I have just re-enabled support for 0.9.8 on the server side to fix this 
 problem, but I’d like to stop supporting it in the near future (unsafe http 
 connection is the #1 reason).  
great, thanks  

  
 Is there a chance to update this Debian package to the latest upstream 
 version in not so distant future?  

the package is too old for 2 reasons  

- not long ago jessie was released, before that we were in freeze  
- 0.9.8 is the latest python version of asciinema.  

I never packaged a go application for debian before, it is on my TODO  
list but it will take more time (it is a new thing for me)  

Daniel, I'm sorry you found the program does not work, I haven't use it  
in a while so I wasn't aware of the breakage.  

Marcin, could you release a last python version, a patch is fine too,  
which uses https? I could upload that right away while I work on  
packaging the latest version  


  
 --   
 Marcin  

--  
1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333  

keybase: http://keybase.io/gfa  


https.patch
Description: Binary data


Bug#794298: asciinema: broken, Unable to upload

2015-08-02 Thread Marcin Kulik
Hi, asciinema developer here.

First, many thanks to Gustavo for packaging asciinema for Debian. I really 
appreciate that. 

The reason why 0.9.8 was deprecated is that it’s almost 2 years old release 
which uses unsafe http (not https) URL for uploading recordings.

This version doesn’t save the recording to the filesystem before uploading and 
as you noticed the recording is lost when then upload fails for any reason. It 
also doesn’t consult the API about possible deprecations before starting 
recording.

These issues (https, saving to tmp file) has been addressed in 0.9.9 (the 
latest version is 1.1.1 btw).
Versions 0.9.8 also use documented, open format for the recordings.

I have just re-enabled support for 0.9.8 on the server side to fix this 
problem, but I’d like to stop supporting it in the near future (unsafe http 
connection is the #1 reason).

Is there a chance to update this Debian package to the latest upstream version 
in not so distant future?

Marcin Kulik

On Fri, 31 Jul 2015 23:04:19 + (UTC) Daniel Shahaf wrote:
 Package: asciinema
 Version: 0.9.8-1
 Severity: grave
 Tags: upstream
 Justification: renders package unusable
  
 Dear Maintainer,
  
 asciinema cannot upload new recordings:
  
 % asciinema -c /bin/true
  
 ~ Asciicast recording finished.
 ~ Do you want to upload it? [Y/n] y
 ~ Uploading...
 ~ Upload failed: Your client version is no longer supported. Please upgrade 
 to the latest version.
  
 I expected the upload to succeed.
  
 Moreover, if the asciinema client is too old to upload, then either that
 should be reported prior to starting the recorded command, or the
 recorded session should be saved in a file that the error message names;
 doing neither causes user effort (the recorded session) to be lost.
  
 I'm on jessie/stable, however, Carsten Hey (carsten@d.o) reproduced this in 
 sid.
  
 Cheers,
  
 Daniel
  
 -- System Information:
 Debian Release: 8.1
 APT prefers stable
 APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 
 'stable-updates'), (200, 'unstable'), (200, 'testing')
 Architecture: amd64 (x86_64)
  
 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
 Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 Init: systemd (via /run/systemd/system)
  
 Versions of packages asciinema depends on:
 ii python3 3.4.2-2
 ii python3-requests 2.4.3-6
 pn python3:any  
  
 asciinema recommends no packages.
  
 asciinema suggests no packages.
  
 -- debconf-show failed
  
  

-- 
Marcin