You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Janek Hiis (JIRA)" <ji...@apache.org> on 2008/07/31 22:34:31 UTC

[jira] Created: (SHINDIG-486) openssl_pkey_get_private() values cannot be cached

openssl_pkey_get_private() values cannot be cached
--------------------------------------------------

                 Key: SHINDIG-486
                 URL: https://issues.apache.org/jira/browse/SHINDIG-486
             Project: Shindig
          Issue Type: Bug
          Components: Common Components (PHP)
         Environment: affects all configurations when using some sort of cache
            Reporter: Janek Hiis
            Priority: Minor


in php/src/gadgets/SigningFetcherFactory.php the private key file is loaded from file and then converted with openssl_pkey_get_private(). But the result of this is of type #Resource and thus cannot be serialized and stored into cache.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-486) openssl_pkey_get_private() values cannot be cached

Posted by "Janek Hiis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janek Hiis updated SHINDIG-486:
-------------------------------

    Attachment: patch.txt

Do not store #Resource into cache but only private key file contents.
Also openssl_pkey_get_private was ran twice so this can be eliminated aswell.

> openssl_pkey_get_private() values cannot be cached
> --------------------------------------------------
>
>                 Key: SHINDIG-486
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-486
>             Project: Shindig
>          Issue Type: Bug
>          Components: Common Components (PHP)
>         Environment: affects all configurations when using some sort of cache
>            Reporter: Janek Hiis
>            Priority: Minor
>         Attachments: patch.txt
>
>
> in php/src/gadgets/SigningFetcherFactory.php the private key file is loaded from file and then converted with openssl_pkey_get_private(). But the result of this is of type #Resource and thus cannot be serialized and stored into cache.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-486) openssl_pkey_get_private() values cannot be cached

Posted by "Janek Hiis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janek Hiis resolved SHINDIG-486.
--------------------------------

    Resolution: Fixed

Fixed with SVN revision r681865 by chabotc

> openssl_pkey_get_private() values cannot be cached
> --------------------------------------------------
>
>                 Key: SHINDIG-486
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-486
>             Project: Shindig
>          Issue Type: Bug
>          Components: Common Components (PHP)
>         Environment: affects all configurations when using some sort of cache
>            Reporter: Janek Hiis
>            Priority: Minor
>         Attachments: patch.txt
>
>
> in php/src/gadgets/SigningFetcherFactory.php the private key file is loaded from file and then converted with openssl_pkey_get_private(). But the result of this is of type #Resource and thus cannot be serialized and stored into cache.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-486) openssl_pkey_get_private() values cannot be cached

Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619588#action_12619588 ] 

Chris Chabot commented on SHINDIG-486:
--------------------------------------

Hey Janek,

Thanks for reporting that, sorry i didn't see it in time; Caching a resource was indeed quite the wrong thing to do

> openssl_pkey_get_private() values cannot be cached
> --------------------------------------------------
>
>                 Key: SHINDIG-486
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-486
>             Project: Shindig
>          Issue Type: Bug
>          Components: Common Components (PHP)
>         Environment: affects all configurations when using some sort of cache
>            Reporter: Janek Hiis
>            Priority: Minor
>         Attachments: patch.txt
>
>
> in php/src/gadgets/SigningFetcherFactory.php the private key file is loaded from file and then converted with openssl_pkey_get_private(). But the result of this is of type #Resource and thus cannot be serialized and stored into cache.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.