Comments (5)
On 2015-09-18 08:11, restena-sw wrote:
I am executing
TZ=UTC ./pyff --loglevel=INFO ../etc/edugain-sp.fd
and get a resulting file with
validUntil="2015-10-18T05:58:27.063864"
but the software consuming this dataset complains that there needs to be
a trailing "Z" to indicate UTC time zone.Other users of pyFF seem to get the timezone info. Maybe it's just
something about my python environment (in which case it would be worth
documenting it in pyFF's installation instructions). I have python 2.7.8
on openSUSE 13.2.—
Reply to this email directly or view it on GitHub
#69.
This sounds like an old issue. Are you sure you are using the newest
version from github?
from pyff.
This is 0.9.4; updated with pip just this morning.
Too old?
Am 18.09.2015 um 11:16 schrieb Leif Johansson:
On 2015-09-18 08:11, restena-sw wrote:
I am executing
TZ=UTC ./pyff --loglevel=INFO ../etc/edugain-sp.fd
and get a resulting file with
validUntil="2015-10-18T05:58:27.063864"
but the software consuming this dataset complains that there needs to be
a trailing "Z" to indicate UTC time zone.Other users of pyFF seem to get the timezone info. Maybe it's just
something about my python environment (in which case it would be worth
documenting it in pyFF's installation instructions). I have python 2.7.8
on openSUSE 13.2.—
Reply to this email directly or view it on GitHub
#69.This sounds like an old issue. Are you sure you are using the newest
version from github?—
Reply to this email directly or view it on GitHub
#69 (comment).
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
Tel: +352 424409 1
Fax: +352 422473
PGP key updated to 4096 Bit RSA - I will encrypt all mails if the
recipient's key is known to me
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66
from pyff.
0.9.4 builtins.py line 888 an following state:
if offset is not None:
dt = datetime.now() + offset
e.set('validUntil', dt.isoformat())
but the .isoformat() function does NOT add a "Z" in the end. I believe this is where my problem comes from. Changing this if statement to an explicit strformat like a few lines up (massaging of the "ID" element) like this:
if offset is not None:
dt = datetime.now() + offset
e.set('validUntil', dt.strftime("%Y-%m-%dT%H:%M:%SZ"))
fixes the issues and sets the Z as it should.
I believe using isoformat() is a bug at this place and look forward to a fixed 0.9.5 :-)
from pyff.
can you verify this is a problem on HEAD (and perhaps provide a PR to fix it :-))
from pyff.
From reading master branch sources, it looks like this is indeed fixed there.
from pyff.
Related Issues (20)
- Request for IDPSSO still has SPs in resulting file HOT 2
- XML schema validation failure when signing HOT 6
- Filtering out entites HOT 4
- No parser for metadata signing certificates HOT 2
- MDQ response for non-standard request by identifier HOT 4
- Unexpected handling of xi:include element HOT 1
- distorted logo HOT 3
- mousless organization selection HOT 2
- Stylesheets and fork HOT 3
- Metadata of deleted XRD links are still published HOT 1
- Search HOT 9
- Filtering doesn't work as expected HOT 1
- Multi-word query strings don't match properly against metadata elements
- How do I add support for SHA1 in WSGI scenario HOT 1
- Python 3.10 - ImportError: cannot import name 'MutableMapping' from 'collections' HOT 1
- When filtering by entity type, I get a response that includes all entities HOT 11
- Pyff tries to write downloaded metadata to /var/run/pyff HOT 6
- Wrong entityId selected
- pyFF > 2.0.0 doesn't appear to check metadata signatures
- pyFF doesnt handle ASN.1 parser errors gracefully with backwards incompatible pyca/cryptography (>= 35.0.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyff.