Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Neetu Mishra
Documents & media "The requested resource was not found."
1 agosto 2012 6.56
Risposta

Neetu Mishra

Punteggio: Junior Member

Messaggi: 76

Data di Iscrizione: 21 maggio 2012

Messaggi recenti

Hi All,

I am creating a structures to take file name & file url as an input

1<root>
2    <dynamic-element name="FormName" type="text" index-type="" repeatable="true">
3        <dynamic-element name="FormURL" type="document_library" index-type="" repeatable="false"/>
4    </dynamic-element>
5</root>


Now when I am adding web content using this structure & if the file url is pointing to any pdf file then it's generating this error:

The requested resource was not found.
http://localhost:8080/en_GB/documents/10180/26880/reimbursement+claim+form.pdf


if I am trying this with .doc & .txt file & it's working fine.

I have tried to find the solution on the forum & I got that I should add following lines in portal-ext.properties file
 1##
 2## Redirect
 3##
 4#
 5# Set this property to "ip" or "domain" for the redirect security method. If
 6# set to "domain", the portal will only redirect users to domains listed in
 7# the property "redirect.url.domain.allowed". If set to "ip", the portal
 8# will only redirect to domains whose IP address resolve to an IP address
 9# listed in the property "redirect.url.ip.allowed".
10#
11#redirect.url.security.mode=domain
12redirect.url.security.mode=ip
13
14#
15# Input a list of comma delimited domains which the portal is allowed to
16# redirect to. Input a blank list to allow any domain.
17#
18redirect.url.domains.allowed=
19
20#
21# Input a list of comma delimited IPs which the portal is allowed to
22# redirect to. Input a blank list to allow any IP. SERVER_IP will be
23# replaced with the IP of the host server.
24#
25#redirect.url.ips.allowed=127.0.0.1,SERVER_IP
26redirect.url.ips.allowed=localhost:8080


But it is still not workingemoticon...Can anyone please help me regarding this??



Thanks in advance!!

Regards,
Neetu
Juan Gonzalez
RE: Documents & media "The requested resource was not found."
1 agosto 2012 7.19
Risposta

Juan Gonzalez

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2892

Data di Iscrizione: 28 ottobre 2008

Messaggi recenti

redirect.ips.allowed is wrong, Your commented value is right.

Please post here your template, guess that "/en_EN/" part of document path is wrong too.