I already found the problem (I think my answer was somehow refused by the moderator....).

The problem was that I oversaw copying these two lines into my apache setup:

|||ProxyPreserveHost On|
|||RequestHeader set X-Forwarded-Proto https|

After I added them, the error message no longer appeared and the page worked properly.

Tks.

Em 24/10/2024 15:15, DSpace Technical Support escreveu:
Hi Roberto,

If you are still getting this error, it might be related to this "common installation issue" where REST API "links" sometimes revert to HTTP instead of HTTPS.  The fix is to set "X-Forwarded-Proto: https" header in your proxy.  See https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace#InstallingDSpace-MyRESTAPIisrunningunderHTTPS,butsomeofits%22link%22URLsareswitchingtoHTTP

If that doesn't fix things, then we may need more information about **when** these errors appear in your logs (e.g. what actions did you take in the User interface which resulted in these errors in the logs)

Tim

On Thursday, October 17, 2024 at 10:19:48 AM UTC-5 [email protected] wrote:

    Hi, I need some help with one error.

    In the logs I'm getting the following error:

    2024-10-17 11:05:57,793 WARN  f758da60-7715-43ae-95b7-022d40744655
    2646f157-3ac5-452d-bb5f-e233a029150e
    org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @
    Request is invalid or incorrect (status:400 exception: the
    supplied uri is not ours:
    
http://<my_domain>/server/api/core/sites/66f8d03a-2690-4e10-ab1e-35e6b6167f00
    at:
    org.dspace.app.rest.utils.Utils.getBaseObjectRestFromUri(Utils.java:1005))

    The problem here is that the access is going to http, instead of
    https. Could someone point me where I correct this entry so it
    goes to the same url, but with https?

    It's a new dspace 8 install on Ubuntu 24.04, And I followed the
    following tutorial for basic setup:
    https://subratiitk.wordpress.com/install-dspace-7-2-on-ubuntu-22-04-lts/

    For SSL I used the following:
    
https://repozitar.fhv.uniza.sk/server/api/core/bitstreams/5bb1b4a1-1422-4cd7-b878-b30d1eecd98d/content

    Thank you,

    Roberto

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/ADEr5OY0BTY/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/d03bc720-070a-4660-909e-6b0bff601a5en%40googlegroups.com <https://groups.google.com/d/msgid/dspace-tech/d03bc720-070a-4660-909e-6b0bff601a5en%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
  -----------------------------------------------------
                Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
    Os pessimistas tem medo de que isto seja verdade
                             James Branch Cabell
  -----------------------------------------------------

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/1c8bd276-5128-4fc5-91f4-094229dcac14%40gmail.com.

Reply via email to