Coder Social home page Coder Social logo

Media Import issue within Scalar about scalar HOT 6 CLOSED

anvc avatar anvc commented on August 24, 2024
Media Import issue within Scalar

from scalar.

Comments (6)

aarondmoss avatar aarondmoss commented on August 24, 2024 1

Went into the root level .htaccess and changed RewriteCond %{REQUEST_URI} !^/scalar/system(.) [NC] to RewriteCond %{REQUEST_URI} !^/system(.) [NC] to match my environment. This change fixed the "Metropolitan Museum of Art Importer" and the import from my Omeka install.

from scalar.

craigdietrich avatar craigdietrich commented on August 24, 2024

Is the .htaccess file present in system/application/rdf?

https://github.com/anvc/scalar/blob/master/system/application/rdf/.htaccess

It's critical to allow requests through to the RDF proxy ... a lot of times the file doesn't get copied especially if you're using a Mac FTP client, where dot files are hidden.

from scalar.

pguerr061703 avatar pguerr061703 commented on August 24, 2024

.htaccess is present.(see below) Is this a possible firewall issue? ports that may need to be opened?
My Scalar server sits on a DMZ network.

cat .htaccess

Satisfy Any
Allow from all# pwd
/var/www/html/scalar/system/application/rdf

from scalar.

craigdietrich avatar craigdietrich commented on August 24, 2024

Hmm... I don't know much (if anything) about DMZ .... can you open up your browser's NET console and see what the http error number + message is when you try to search for something?

from scalar.

aarondmoss avatar aarondmoss commented on August 24, 2024

I'm experiencing something similar with affiliates and other archives.

When searching the http result is a 404 error for my server, not the affiliate. "The requested URL /system/application/rdf/proxy.php was not found on this server." proxy.php is on the server, the path leading to it is accessible to the web server. The .htaccess file is present in system/application/rdf.

I'm running 2.1.1 on RHEL 6 with MySQL 5.5, Apache 2.2 w/ SSL, and PHP 5.3.3.

From Chrome's console: Request URL:https://sislt-scalar.missouri.edu/system/application/rdf/proxy.php?xsl=https%3A%2F%2Fsislt-scalar.missouri.edu%2Fsystem%2Fapplication%2Frdf%2Fxsl%2Fcuban_theater_digital_archive.xsl&uri=http%3A%2F%2Fctda.library.miami.edu%2Fobjsearch%2F%3Fq%3DBERNARDA&format=json&header=

httpd log entries from server:

Accessed Directly (visited: https://sislt-scalar.missouri.edu/system/application/rdf/proxy.php):
xxx.xxx.xxx.xxx - - [22/Nov/2016:12:08:47 -0600] "GET /system/application/rdf/proxy.php HTTP/1.1" 404 323 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36"

Accessed through Scalar:
xxx.xxx.xxx.xxx - - [22/Nov/2016:12:09:04 -0600] "GET /system/application/rdf/proxy.php?xsl=https%3A%2F%2Fsislt-scalar.missouri.edu%2Fsystem%2Fapplication%2Frdf%2Fxsl%2Fcuban_theater_digital_archive.xsl&uri=http%3A%2F%2Fctda.library.miami.edu%2Fobjsearch%2F%3Fq%3DBERNARDA&format=json&header= HTTP/1.1" 404 323 "https://sislt-scalar.missouri.edu/test-book/import/cuban_theater_digital_archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36"

from scalar.

craigdietrich avatar craigdietrich commented on August 24, 2024

@clueboy37 ... and you're sure mod_rewrite (which enables .htaccess) is On in your apache config?

Your Scalar URLs are "clean", correct? If not, for example, if page URLs have "codeigniter.php" in them, then this means the root .htaccess isn't working either.

from scalar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.