You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Oliver Strässer (JIRA)" <ji...@apache.org> on 2010/03/15 09:19:27 UTC

[jira] Created: (CLEREZZA-162) DiscobitsHandler - problem while displaying uploaded assets

DiscobitsHandler - problem while displaying uploaded assets
-----------------------------------------------------------

                 Key: CLEREZZA-162
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-162
             Project: Clerezza
          Issue Type: Bug
            Reporter: Oliver Strässer
            Priority: Blocker



I put a pdf file with the discobitsHandler into the content graph: 

UriRef pdfUri = new UriRef(platformConfig.getDefaultBaseUri().getUnicodeString()+"digital-assets/" + fileName);
discobitsHandler.put(pdfUri, MediaType.valueOf("application/pdf"), byteArrayOutputStream.toByteArray());


the generated uri is the following: 
									
http://my.hostadrdress.ch/digital-assets/201003142206142860245466666178-2118689913-12752926081466160828.pdf

on my local pcinstallation i can open the pdf file - no problem. 

but on the customer installation - i get the message "Sorry, we know nothing about this resource."


 Environment: 
my local installation is running with the default port. 
customer installation: PORT MAPPING 8383 to 80



the same problem occours, if i use trialox tools to upload files - so this is a central problem !






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


[jira] Updated: (CLEREZZA-162) DiscobitsHandler - problem while displaying uploaded assets

Posted by "Oliver Strässer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Strässer updated CLEREZZA-162:
-------------------------------------


the solution is to configure the port mapping in the following way:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:CLEREZZAPORT/ 
ProxyVia off


thank you reto



> DiscobitsHandler - problem while displaying uploaded assets
> -----------------------------------------------------------
>
>                 Key: CLEREZZA-162
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-162
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Oliver Strässer
>            Priority: Blocker
>
> I put a pdf file with the discobitsHandler into the content graph: 
> UriRef pdfUri = new UriRef(platformConfig.getDefaultBaseUri().getUnicodeString()+"digital-assets/" + fileName);
> discobitsHandler.put(pdfUri, MediaType.valueOf("application/pdf"), byteArrayOutputStream.toByteArray());
> the generated uri is the following: 
> 									
> http://my.hostadrdress.ch/digital-assets/201003142206142860245466666178-2118689913-12752926081466160828.pdf
> on my local pcinstallation i can open the pdf file - no problem. 
> but on the customer installation - i get the message "Sorry, we know nothing about this resource."
>  Environment: 
> my local installation is running with the default port. 
> customer installation: PORT MAPPING 8383 to 80
> the same problem occours, if i use trialox tools to upload files - so this is a central problem !

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


[jira] Commented: (CLEREZZA-162) DiscobitsHandler - problem while displaying uploaded assets

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845244#action_12845244 ] 

Reto Bachmann-Gmür commented on CLEREZZA-162:
---------------------------------------------

Hi Oliver

Could you provide additinal details for the not working custom installation:
- the default base URI
- the URI of the pdf
- the URI which you enter in your browser

if the latter are identical I don't see why it shouldn't be working.

> DiscobitsHandler - problem while displaying uploaded assets
> -----------------------------------------------------------
>
>                 Key: CLEREZZA-162
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-162
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Oliver Strässer
>            Priority: Blocker
>
> I put a pdf file with the discobitsHandler into the content graph: 
> UriRef pdfUri = new UriRef(platformConfig.getDefaultBaseUri().getUnicodeString()+"digital-assets/" + fileName);
> discobitsHandler.put(pdfUri, MediaType.valueOf("application/pdf"), byteArrayOutputStream.toByteArray());
> the generated uri is the following: 
> 									
> http://my.hostadrdress.ch/digital-assets/201003142206142860245466666178-2118689913-12752926081466160828.pdf
> on my local pcinstallation i can open the pdf file - no problem. 
> but on the customer installation - i get the message "Sorry, we know nothing about this resource."
>  Environment: 
> my local installation is running with the default port. 
> customer installation: PORT MAPPING 8383 to 80
> the same problem occours, if i use trialox tools to upload files - so this is a central problem !

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


[jira] Closed: (CLEREZZA-162) DiscobitsHandler - problem while displaying uploaded assets

Posted by "Oliver Strässer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Strässer closed CLEREZZA-162.
------------------------------------

    Resolution: Fixed

> DiscobitsHandler - problem while displaying uploaded assets
> -----------------------------------------------------------
>
>                 Key: CLEREZZA-162
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-162
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Oliver Strässer
>            Priority: Blocker
>
> I put a pdf file with the discobitsHandler into the content graph: 
> UriRef pdfUri = new UriRef(platformConfig.getDefaultBaseUri().getUnicodeString()+"digital-assets/" + fileName);
> discobitsHandler.put(pdfUri, MediaType.valueOf("application/pdf"), byteArrayOutputStream.toByteArray());
> the generated uri is the following: 
> 									
> http://my.hostadrdress.ch/digital-assets/201003142206142860245466666178-2118689913-12752926081466160828.pdf
> on my local pcinstallation i can open the pdf file - no problem. 
> but on the customer installation - i get the message "Sorry, we know nothing about this resource."
>  Environment: 
> my local installation is running with the default port. 
> customer installation: PORT MAPPING 8383 to 80
> the same problem occours, if i use trialox tools to upload files - so this is a central problem !

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