Jump to content

dragonfly411

Clients
  • Posts

    56
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by dragonfly411

  1. The problem has been resolved. It's not related to the theme.

    Digging in the code I could see it was failing on the expire date.

    /* Current Period Start Date */
    $startOfCurrentPeriod = $purchase->expire->sub( $purchase->renewals->interval );

    Checking the account of Ritsuke showed he had set himself a subscription on never expire.

    Could contain: Page, Text

     

    When I set an expire date the error is resolved and all subscriptions are visible.

     

    Could contain: Page, Text

    So this is a bug in IPB that will need to be handled🙂

  2. Follow-up on the AWS S3 configuration issue I encountered
    https://invisioncommunity.com/forums/topic/465562-aws-s3-storage-http-400-issue-v4610/

    Just a suggestion for feature improvements to save potential bandwidth costs 🙂

    S3 Outgoing bandwidth costs money and we host video uploads as well. So I had given public access via a policy and set a Referer condition to limit bandwidth leaching.

    This works for own uploads but not for forum uploads as IPB explicitly grants public LIST access.

    Policy on the bucket

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "PublicReadGetObject",
                "Effect": "Allow",
                "Principal": "*",
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::MyBucketName/*",
                "Condition": {
                    "StringLike": {
                        "aws:Referer": [
                            "https://www.domain.com/*",
                            "https://domain.com/*"
                        ]
                    }
                }
            }
        ]
    }

    Permissions set by IPB

    bucket_list.jpg.ce1452f12c1a28c4f8ffc0de

  3. Just a suggestion for feature improvements to save potential bandwidth costs 🙂

    S3 Outgoing bandwidth costs money and we host video uploads as well. So I had given public access via a policy and set a Referer condition to limit bandwidth leaching.

    This works for own uploads but not for forum uploads as IPB explicitly grants public LIST access.

    Policy on the bucket

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "PublicReadGetObject",
                "Effect": "Allow",
                "Principal": "*",
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::MyBucketName/*",
                "Condition": {
                    "StringLike": {
                        "aws:Referer": [
                            "https://www.domain.com/*",
                            "https://domain.com/*"
                        ]
                    }
                }
            }
        ]
    }

    Permissions set by IPB

    bucket_list.jpg.ce1452f12c1a28c4f8ffc0de15a55089.jpg

     

  4. 17 minutes ago, Marc Stridgen said:

    Just to point out on this one, we provide guides on how to set up our side, and attempt to provide the AWS side. However you dont actually pay us to provide guides on how to set up AWS. I can certainly take a look at that, but I do need to clarify this point. 

    That is correct but if IPB code is not following the latest AWS recommendation this should be mentioned. Not everybody knows how to debug issues and read PHP code 🙂

    I have given plenty of information about what I had tried and shared my access key with you via PM. Since it was working with AWS CLI on the same server it had to be related to IPB code.

    Solved for now and it might help other people in the future.

×
×
  • Create New...