Posts Tagged ‘debug’
CDS Invenio: Debugging/checking permissions (webaccess)
Some time ago I talked about authorizations, roles and actions in CDS-Invenio webaccess module. Two days ago I noticed some weird behaviour with authorization to runbibedit with (collection) parameter. Will write a post about it some time. But it is nice to know how you can debug this funny behaviours using acc_authorize_action python function or [...]
Burp suite, foxy proxyand mod_rewrite
Currently I am attending a workshop on Designing Secure Wep Apps and there I learned about Burp suite and Foxy proxy (standard). What is Burp Suite? Burp Suite is an integrated platform for attacking web applications. It contains all of the Burp tools with numerous interfaces between them designed to facilitate and speed up the [...]
CDS-Invenio: bibtask error log
Some bibsched tasks will fail in its execution. These tasks are marked in red as seen here: When you deal with these kind of errors it is very useful to see the information related to that errors in the logs. 1. Take a look at the failing task id. In my case, this is $TASK_ID=1912 [...]
CDS-Invenio: bibrecdocfile
It is a good practice, when defining new functions that manage file records, to use bibdocfile. This function returns the information related to a specific record an its attached files: For instance: $> /soft/cds-invenio/bin/bibdocfile –get-info –recid 3277 It will spit out: 3277::::total bibdocs attached=1 3277::::total size latest version=714.1 KB 3277::::total size all files=714.1 KB 3277:225:::docname=ART–2009-009 [...]
CDS-Invenio: how-to debug (Bibformat)
When developing new bibformat elements you can have problems and might want to debug them. Here are a few tips: Since BibFormat elements are plain Python codes, you can user regular Python tool to debug these elements. Pylint is already a good start. Other hints: – From a detailed record page, append &verbose=9 to see [...]