Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Content Server URL Generation expiration parameter

joo_ferreira
Participant
0 Likes
1,382

Hello,

I'm using a content server to store documents. When i need to retrieve files, the expiration parameter on the URL is automaticaly set to 1 day .

Where i can change that? Is it possible?

Regards,

Joao

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
868

Hi,

are you sure that it's 1 day. The default value should be 2 hours. I remember that I couldn't find how to change this default value. There is a FM SCMS_URL_SIGN which signs URL for content server. You can see there that it has an option to set expiration to any value or set duration. The default duration is hard coded to 2 hours. I quickly checked some of FMs which call SCMS_URL_SIGN and it looks like nobody sets up these two optional parameters. You can try to use enhancement framework to modify behavior of this FM.

Cheers

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
869

Hi,

are you sure that it's 1 day. The default value should be 2 hours. I remember that I couldn't find how to change this default value. There is a FM SCMS_URL_SIGN which signs URL for content server. You can see there that it has an option to set expiration to any value or set duration. The default duration is hard coded to 2 hours. I quickly checked some of FMs which call SCMS_URL_SIGN and it looks like nobody sets up these two optional parameters. You can try to use enhancement framework to modify behavior of this FM.

Cheers

Read only

0 Likes
868

I'm sure that it's 1 day.

Debugging i can check that this FM SCMS_AO_URL_READ has a lifetime parameter that is not set, then it uses the default 'T'.

Regards

Read only

mvoros
Active Contributor
0 Likes
868

OK, I don't have any system where I can test it. But you can still try to use enhancement framework to modify default behavior.

Cheers