resource size and permissions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > resource size and permissions




Pages (3): [1] 2 3 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    resource size and permissions  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi all,

Does anyone know what ACL permissions are required for MCMS to be able
to retrieve the Size property of a resource?  I have some code which
pulls out the size and this worked all the time in development but
sometimes on the production server it fails (and I don't have access to
see what the error is).  When this happens the resource in question
also fails to be accessible anonymously.

This all sounds like ACLs to me, but what should they be set to and
where?  How does MCMS resolve the resource request into an object in
rdonlyres?  I am assuming also that this can only be a problem once
there has been an initial request for the resource so that it is pulled
from the db onto the server filesystem but cannot test it as the
problem is only on live.

Thanks,

Chandy






[ Post a follow-up to this message ]



    Re: resource size and permissions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Charndy,

only subscriber permissions on the resource gallery are required.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1131619249.768140.176840@z14g2000cwz.googlegroups.com...
> Hi all,
>
> Does anyone know what ACL permissions are required for MCMS to be able
> to retrieve the Size property of a resource?  I have some code which
> pulls out the size and this worked all the time in development but
> sometimes on the production server it fails (and I don't have access to
> see what the error is).  When this happens the resource in question
> also fails to be accessible anonymously.
>
> This all sounds like ACLs to me, but what should they be set to and
> where?  How does MCMS resolve the resource request into an object in
> rdonlyres?  I am assuming also that this can only be a problem once
> there has been an initial request for the resource so that it is pulled
> from the db onto the server filesystem but cannot test it as the
> problem is only on live.
>
> Thanks,
>
> Chandy
>







[ Post a follow-up to this message ]



    Re: resource size and permissions  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Stefan,

I am assuming that this is nothing to do with MCMS premissions but
Filesystem permissions as the problem only occurs with single files and
not an entire gallery.  Will check though.

Chandy






[ Post a follow-up to this message ]



    Re: resource size and permissions  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Just checked, the subscribers group definitely has access to all
galleries.

Chandy






[ Post a follow-up to this message ]



    Re: resource size and permissions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Chandy,

MCMS does not use the file system to determine the size of a resource in the
resource gallery.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1131622877.382206.27860@o13g2000cwo.googlegroups.com...
> Hi Stefan,
>
> I am assuming that this is nothing to do with MCMS premissions but
> Filesystem permissions as the problem only occurs with single files and
> not an entire gallery.  Will check though.
>
> Chandy
>







[ Post a follow-up to this message ]



    Re: resource size and permissions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Chandy,

please show me the relevant parts of your code.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1131622965.907006.32810@o13g2000cwo.googlegroups.com...
> Just checked, the subscribers group definitely has access to all
> galleries.
>
> Chandy
>







[ Post a follow-up to this message ]



    Re: resource size and permissions  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Stefan,

Here is the code that fetches the filesize as a string..it's pretty
basic though and works most of the time so I don't see it as the issue?

Dim rs As Resource
Dim fileSize As Decimal
Dim strFileSize As String = String.Empty
Dim strGuid As String = Me.getGuidFromString(strUrl)
rs = CType(CmsHttpContext.Current.Searches.GetByGuid(strGuid),
Resource)
fileSize = rs.Size
strFileSize = CType(Math.Round(fileSize / 1024, 2), String)

I should also add that the code works fine for all resources when
editing, it's only on the readonly site that there are any issues.
Again this says to me 'ACL on a file'.

Chandy






[ Post a follow-up to this message ]



    Re: resource size and permissions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 12:50 PM

Hi Chandy,

please step through the code and check if you get the resource object.
If yes, which value is returned for rs.Size?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1131629230.283794.83010@o13g2000cwo.googlegroups.com...
> Hi Stefan,
>
> Here is the code that fetches the filesize as a string..it's pretty
> basic though and works most of the time so I don't see it as the issue?
>
> Dim rs As Resource
> Dim fileSize As Decimal
> Dim strFileSize As String = String.Empty
> Dim strGuid As String = Me.getGuidFromString(strUrl)
> rs = CType(CmsHttpContext.Current.Searches.GetByGuid(strGuid),
> Resource)
> fileSize = rs.Size
> strFileSize = CType(Math.Round(fileSize / 1024, 2), String)
>
> I should also add that the code works fine for all resources when
> editing, it's only on the readonly site that there are any issues.
> Again this says to me 'ACL on a file'.
>
> Chandy
>







[ Post a follow-up to this message ]



    Re: resource size and permissions  
Chandy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 11:00 PM

I get the resouce, the size is returned as 128195 or whatever is
relevant, which then becomes 128195D when it's the decimal and "128.95"
when a string.  As I said, this all works fine but for some resources
on the public site it fails, but only on the public site. I cannot
replicate it yet in development.

Chandy

Stefan [MSFT] wrote:
[vbcol=seagreen]
> Hi Chandy,
>
> please step through the code and check if you get the resource object.
> If yes, which value is returned for rs.Size?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: [url]http://tinyurl.com/6zj44[/url
]
> ----------------------
>
>
> "Chandy" <chandy@totalise.co.uk> wrote in message
> news:1131629230.283794.83010@o13g2000cwo.googlegroups.com... 






[ Post a follow-up to this message ]



    Re: resource size and permissions  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 11:00 PM

Hi Chandy,

what do you mean "for some resources on the public site it fails".
Please debug this on the public site and for the affected resources.
Are you getting the resource object for these affected resource?
What is returned for the size for the affected resources?

Thanks,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1131633233.484680.306840@z14g2000cwz.googlegroups.com...
>I get the resouce, the size is returned as 128195 or whatever is
> relevant, which then becomes 128195D when it's the decimal and "128.95"
> when a string.  As I said, this all works fine but for some resources
> on the public site it fails, but only on the public site. I cannot
> replicate it yet in development.
>
> Chandy
>
> Stefan [MSFT] wrote:
> 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:02 PM.      Post New Thread    Post A Reply      
Pages (3): [1] 2 3 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register