Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint 003 Thin Collection Controller #160

Merged
merged 17 commits into from
Mar 24, 2016
Merged

Sprint 003 Thin Collection Controller #160

merged 17 commits into from
Mar 24, 2016

Conversation

whikloj
Copy link
Member

@whikloj whikloj commented Feb 26, 2016

This PR subsumes #159 and daniel-dgi/islandora#2

If those are merged this is not needed.

Includes @daniel-dgi changes to a thin Collection controller.
Includes addition and deletion of proxy objects for pcdm:objects.
Adds a response parse to get the transaction ID.
Changes ResourceService's idToUri function to return a 404 response instead of halting all processing.

@whikloj
Copy link
Member Author

whikloj commented Mar 23, 2016

@ruebot, @DiegoPino, @daniel-dgi, @nigelgbanks, @edf

This adds a working vagrant with a new port :8282 which has access to the endpoints

/islandora/resource
/islandora/collection
/islandora/transaction

Please try it out and see if the vagrant comes up for you and you are able to test these end points.

@ruebot
Copy link
Member

ruebot commented Mar 23, 2016

building

@ruebot
Copy link
Member

ruebot commented Mar 23, 2016

==> default: -e Altering composer.json to use branch 'dev-sprint-002-thinCollection'...
==> default: done
==> default: Installer verified
==> default: All settings correct for using Composer
==> default: Downloading...
==> default: 
==> default: Composer successfully installed to: /home/vagrant/islandora/services/composer.phar
==> default: 
==> default: Use it: php composer.phar
==> default: Loading composer repositories with package information
==> default: Updating dependencies (including require-dev)
==> default: Your requirements could not be resolved to an installable set of packages.
==> default: 
==> default:   Problem 1
==> default:     - The requested package islandora/resource-service could not be found in any version, there may be a typo in the package name.
==> default:   Problem 2
==> default:     - The requested package islandora/collection-service could not be found in any version, there may be a typo in the package name.
==> default: 
==> default: Potential causes:
==> default:  - A typo in the package name
==> default:  - The package is not available in a stable-enough version according to your minimum-stability setting
==> default:    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
==> default: 
==> default: Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

That could be concerning, but it looks like everything built fine. But....

$ curl -i localhost:8282/islandora/resource 
HTTP/1.0 500 Internal Server Error
Date: Wed, 23 Mar 2016 17:53:58 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Content-Length: 0
Connection: close
Content-Type: text/html

[nruest@simian:install] (git)-[sprint-002-thinCollection]-$ curl -i localhost:8282/islandora/collection
HTTP/1.0 500 Internal Server Error
Date: Wed, 23 Mar 2016 17:55:02 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Content-Length: 0
Connection: close
Content-Type: text/html

[nruest@simian:install] (git)-[sprint-002-thinCollection]-$ curl -i localhost:8282/islandora/transaction
HTTP/1.0 500 Internal Server Error
Date: Wed, 23 Mar 2016 17:55:10 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Content-Length: 0
Connection: close
Content-Type: text/html

@nigelgbanks
Copy link
Member

Probably should drop the binary and archive files? phar, etc?

@whikloj
Copy link
Member Author

whikloj commented Mar 23, 2016

@ruebot ok, I will try a fresh clone
@nigelgbanks I'll drop them

@whikloj
Copy link
Member Author

whikloj commented Mar 23, 2016

Building fresh clone...

@br2490
Copy link

br2490 commented Mar 24, 2016

Built and:
vagrant@islandora-deux:~$ curl -i -XPOST -H "Slug:MorningCoffee" localhost:8282/islandora/collection
HTTP/1.1 201 Created
Date: Thu, 24 Mar 2016 13:07:55 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
ETag: "00661b5625b07f1409cd6f0beca344fe52990d3d"
Cache-Control: private, must-revalidate
Last-Modified: Thu, 24 Mar 2016 13:07:57 GMT
Location: http://localhost:8080/islandora/resource/6be1712c-2eac-5fe8-a220-23e9c900dd4c
Content-Length: 77
Connection: close
Link: http://localhost:8080/islandora/resource/6be1712c-2eac-5fe8-a220-23e9c900dd4c/members; rel="hub"
Content-Type: text/plain; charset=UTF-8

vagrant@islandora-deux:~$ curl -i localhost:8282/islandora/resource
HTTP/1.1 200 OK
Date: Thu, 24 Mar 2016 12:50:33 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Link: http://www.w3.org/ns/ldp#Resource;rel="type"
Link: http://www.w3.org/ns/ldp#Container;rel="type"
Link: http://www.w3.org/ns/ldp#BasicContainer;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Preference-Applied: return=representation
Vary: Prefer,Accept,Range,Accept-Encoding,Accept-Language
Content-Length: 6841
Connection: close
Cache-Control: no-cache
Content-Type: text/turtle; charset=UTF-8

vagrant@islandora-deux:~$ curl -i localhost:8282/islandora/transaction
HTTP/1.1 200 OK
Date: Thu, 24 Mar 2016 12:52:15 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Link: http://www.w3.org/ns/ldp#Resource;rel="type"
Link: http://www.w3.org/ns/ldp#Container;rel="type"
Link: http://www.w3.org/ns/ldp#BasicContainer;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Preference-Applied: return=representation
Vary: Prefer,Accept,Range,Accept-Encoding,Accept-Language
Content-Length: 6804
Connection: close
Cache-Control: no-cache
Content-Type: text/turtle; charset=UTF-8

@ruebot
Copy link
Member

ruebot commented Mar 24, 2016

@whikloj collection seems funky.

...but that was a build before 3b98597... so I'll try and build again before I leave for the airport.

$ curl -i localhost:8282/islandora/transaction       
HTTP/1.1 200 OK
Date: Thu, 24 Mar 2016 14:29:03 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Link: <http://www.w3.org/ns/ldp#Resource>;rel="type"
Link: <http://www.w3.org/ns/ldp#Container>;rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Preference-Applied: return=representation
Vary: Prefer,Accept,Range,Accept-Encoding,Accept-Language
Content-Length: 6804
Connection: close
Cache-Control: no-cache
Content-Type: text/turtle; charset=UTF-8

@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> .
@prefix test: <info:fedora/test/> .
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> .
@prefix mode: <http://www.modeshape.org/1.0> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .


<http://localhost:8282/fcrepo/rest/> a ldp:RDFSource , ldp:Container , ldp:BasicContainer , <http://www.modeshape.org/1.0root> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0referenceable> ;
    fedora:primaryType "mode:root"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
    fedora:repositoryJcrRepositoryName "ModeShape"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionVersioningSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionQuerySqlSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementMultivaluedPropertiesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementOverridesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryLevel1Supported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrSpecificationVersion "2.0"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementUpdateInUseSuported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryFullTextSearchSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionLifecycleSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionNodeAndPropertyWithSameNameSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionRetentionSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionNodeTypeManagementSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryIdentifierStability "identifier.stability.indefinite.duration"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionSimpleVersioningSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryStoredQueriesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementOrderableChildNodesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrSpecificationName "Content Repository for Java Technology API"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUnfiledContentSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionBaselinesSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementPrimaryItemNameSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryLevel2Supported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionActivitiesSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementMultipleBinaryPropertiesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionTransactionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionLockingSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryXpathPosIndex "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUpdateMixinNodeTypesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryJoins "query.joins.inner.outer"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUpdatePrimaryNodeTypeSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVersion "4.2.0.Final"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionJournaledObservationSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionAccessControlSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementValueConstraintsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionShareableNodesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryCustomRepName "repo"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionWorkspaceManagementSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryWriteSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryXpathDocOrder "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementAutocreatedDefinitionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionObservationSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementResidualDefinitionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVendor "JBoss, a division of Red Hat"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionXmlExportSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementPropertyTypes "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementInheritance "node.type.management.inheritance.multiple"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionXmlImportSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementSameNameSiblingsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVendorUrl "http://www.modeshape.org"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:exportsAs <http://localhost:8282/fcrepo/rest/fcr:export?format=jcr/xml> ;
    fedora:hasTransactionProvider <http://localhost:8282/fcrepo/rest/fcr:tx> .

<http://localhost:8282/fcrepo/rest/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> .

<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> .
$ curl -i localhost:8282/islandora/collection 
HTTP/1.1 405 Method Not Allowed
Date: Thu, 24 Mar 2016 14:30:14 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Allow: POST
Cache-Control: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="robots" content="noindex,nofollow" />
        <style>
            /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */
            html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}

            html { background: #eee; padding: 10px }
            img { border: 0; }
            #sf-resetcontent { width:970px; margin:0 auto; }
                        .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }
            .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }
            .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }
            .sf-reset .clear_fix { display:inline-block; }
            .sf-reset * html .clear_fix { height:1%; }
            .sf-reset .clear_fix { display:block; }
            .sf-reset, .sf-reset .block { margin: auto }
            .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }
            .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }
            .sf-reset strong { font-weight:bold; }
            .sf-reset a { color:#6c6159; cursor: default; }
            .sf-reset a img { border:none; }
            .sf-reset a:hover { text-decoration:underline; }
            .sf-reset em { font-style:italic; }
            .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }
            .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; }
            .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; }
            .sf-reset .exception_message { margin-left: 3em; display: block; }
            .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }
            .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;
                -webkit-border-bottom-right-radius: 16px;
                -webkit-border-bottom-left-radius: 16px;
                -moz-border-radius-bottomright: 16px;
                -moz-border-radius-bottomleft: 16px;
                border-bottom-right-radius: 16px;
                border-bottom-left-radius: 16px;
                border-bottom:1px solid #ccc;
                border-right:1px solid #ccc;
                border-left:1px solid #ccc;
            }
            .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;
                -webkit-border-top-left-radius: 16px;
                -webkit-border-top-right-radius: 16px;
                -moz-border-radius-topleft: 16px;
                -moz-border-radius-topright: 16px;
                border-top-left-radius: 16px;
                border-top-right-radius: 16px;
                border-top:1px solid #ccc;
                border-right:1px solid #ccc;
                border-left:1px solid #ccc;
                overflow: hidden;
                word-wrap: break-word;
            }
            .sf-reset a { background:none; color:#868686; text-decoration:none; }
            .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; }
            .sf-reset ol { padding: 10px 0; }
            .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;
                -webkit-border-radius: 10px;
                -moz-border-radius: 10px;
                border-radius: 10px;
                border: 1px solid #ccc;
            }
        </style>
    </head>
    <body>
                    <div id="sf-resetcontent" class="sf-reset">
                <h1>Whoops, looks like something went wrong.</h1>
                                        <h2 class="block_exception clear_fix">
                            <span class="exception_counter">2/2</span>
                            <span class="exception_title"><abbr title="Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException">MethodNotAllowedHttpException</abbr> in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/EventListener/RouterListener.php line 127" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">RouterListener.php line 127</a>:</span>
                            <span class="exception_message">No route found for &quot;GET /islandora/collection&quot;: Method Not Allowed (Allow: POST)</span>
                        </h2>
                        <div class="block">
                            <ol class="traces list_exception">
       <li> in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/EventListener/RouterListener.php line 127" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">RouterListener.php line 127</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>->onKernelRequest(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>))</li>
       <li>at <abbr title=""></abbr>call_user_func(<em>array</em>(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>), 'onKernelRequest'), <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/event-dispatcher/EventDispatcher.php line 171" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">EventDispatcher.php line 171</a></li>
       <li>at <abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>->doDispatch(<em>array</em>(<em>array</em>(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>), 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title="Silex\EventListener\LocaleListener">LocaleListener</abbr>), 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title="Silex\EventListener\MiddlewareListener">MiddlewareListener</abbr>), 'onKernelRequest')), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/event-dispatcher/EventDispatcher.php line 43" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">EventDispatcher.php line 43</a></li>
       <li>at <abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>->dispatch('kernel.request', <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/HttpKernel.php line 120" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">HttpKernel.php line 120</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handleRaw(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>), '1') in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/HttpKernel.php line 62" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">HttpKernel.php line 62</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handle(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in <a title="/home/vagrant/islandora/services/vendor/silex/silex/src/Silex/Application.php line 586" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 586</a></li>
       <li>at <abbr title="Silex\Application">Application</abbr>->handle(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/silex/silex/src/Silex/Application.php line 563" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 563</a></li>
       <li>at <abbr title="Silex\Application">Application</abbr>->run() in <a title="/home/vagrant/islandora/services/src/index.php line 49" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">index.php line 49</a></li>
    </ol>
</div>
                        <h2 class="block_exception clear_fix">
                            <span class="exception_counter">1/2</span>
                            <span class="exception_title"><abbr title="Symfony\Component\Routing\Exception\MethodNotAllowedException">MethodNotAllowedException</abbr> in <a title="/home/vagrant/islandora/services/vendor/symfony/routing/Matcher/UrlMatcher.php line 97" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">UrlMatcher.php line 97</a>:</span>
                            <span class="exception_message"></span>
                        </h2>
                        <div class="block">
                            <ol class="traces list_exception">
       <li> in <a title="/home/vagrant/islandora/services/vendor/symfony/routing/Matcher/UrlMatcher.php line 97" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">UrlMatcher.php line 97</a></li>
       <li>at <abbr title="Symfony\Component\Routing\Matcher\UrlMatcher">UrlMatcher</abbr>->match('/islandora/collection') in <a title="/home/vagrant/islandora/services/vendor/symfony/routing/Matcher/RedirectableUrlMatcher.php line 28" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">RedirectableUrlMatcher.php line 28</a></li>
       <li>at <abbr title="Symfony\Component\Routing\Matcher\RedirectableUrlMatcher">RedirectableUrlMatcher</abbr>->match('/islandora/collection') in <a title="/home/vagrant/islandora/services/vendor/silex/silex/src/Silex/LazyUrlMatcher.php line 51" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">LazyUrlMatcher.php line 51</a></li>
       <li>at <abbr title="Silex\LazyUrlMatcher">LazyUrlMatcher</abbr>->match('/islandora/collection') in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/EventListener/RouterListener.php line 103" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">RouterListener.php line 103</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>->onKernelRequest(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>))</li>
       <li>at <abbr title=""></abbr>call_user_func(<em>array</em>(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>), 'onKernelRequest'), <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/event-dispatcher/EventDispatcher.php line 171" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">EventDispatcher.php line 171</a></li>
       <li>at <abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>->doDispatch(<em>array</em>(<em>array</em>(<em>object</em>(<abbr title="Symfony\Component\HttpKernel\EventListener\RouterListener">RouterListener</abbr>), 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title="Silex\EventListener\LocaleListener">LocaleListener</abbr>), 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title="Silex\EventListener\MiddlewareListener">MiddlewareListener</abbr>), 'onKernelRequest')), 'kernel.request', <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/event-dispatcher/EventDispatcher.php line 43" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">EventDispatcher.php line 43</a></li>
       <li>at <abbr title="Symfony\Component\EventDispatcher\EventDispatcher">EventDispatcher</abbr>->dispatch('kernel.request', <em>object</em>(<abbr title="Symfony\Component\HttpKernel\Event\GetResponseEvent">GetResponseEvent</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/HttpKernel.php line 120" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">HttpKernel.php line 120</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handleRaw(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>), '1') in <a title="/home/vagrant/islandora/services/vendor/symfony/http-kernel/HttpKernel.php line 62" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">HttpKernel.php line 62</a></li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handle(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in <a title="/home/vagrant/islandora/services/vendor/silex/silex/src/Silex/Application.php line 586" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 586</a></li>
       <li>at <abbr title="Silex\Application">Application</abbr>->handle(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>)) in <a title="/home/vagrant/islandora/services/vendor/silex/silex/src/Silex/Application.php line 563" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 563</a></li>
       <li>at <abbr title="Silex\Application">Application</abbr>->run() in <a title="/home/vagrant/islandora/services/src/index.php line 49" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">index.php line 49</a></li>
    </ol>
</div>

            </div>
    </body>
</html>%                                                            
$ curl -i localhost:8282/islandora/resource  
HTTP/1.1 200 OK
Date: Thu, 24 Mar 2016 14:30:56 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Link: <http://www.w3.org/ns/ldp#Resource>;rel="type"
Link: <http://www.w3.org/ns/ldp#Container>;rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Preference-Applied: return=representation
Vary: Prefer,Accept,Range,Accept-Encoding,Accept-Language
Content-Length: 6841
Connection: close
Cache-Control: no-cache
Content-Type: text/turtle; charset=UTF-8

@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> .
@prefix test: <info:fedora/test/> .
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> .
@prefix mode: <http://www.modeshape.org/1.0> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .

<http://localhost:8080/fcrepo/rest/> a ldp:RDFSource , ldp:Container , ldp:BasicContainer , <http://www.modeshape.org/1.0root> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0referenceable> ;
    fedora:primaryType "mode:root"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
    fedora:repositoryJcrRepositoryName "ModeShape"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionVersioningSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionQuerySqlSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementMultivaluedPropertiesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementOverridesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryLevel1Supported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrSpecificationVersion "2.0"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementUpdateInUseSuported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryFullTextSearchSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionLifecycleSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionNodeAndPropertyWithSameNameSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionRetentionSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionNodeTypeManagementSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryIdentifierStability "identifier.stability.indefinite.duration"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionSimpleVersioningSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryStoredQueriesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementOrderableChildNodesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrSpecificationName "Content Repository for Java Technology API"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUnfiledContentSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionBaselinesSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementPrimaryItemNameSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryLevel2Supported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionActivitiesSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementMultipleBinaryPropertiesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionTransactionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionLockingSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryXpathPosIndex "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUpdateMixinNodeTypesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryJoins "query.joins.inner.outer"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionUpdatePrimaryNodeTypeSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVersion "4.2.0.Final"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionJournaledObservationSupported "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionAccessControlSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementValueConstraintsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionShareableNodesSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryCustomRepName "repo"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionWorkspaceManagementSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryWriteSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryQueryXpathDocOrder "false"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementAutocreatedDefinitionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionObservationSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementResidualDefinitionsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVendor "JBoss, a division of Red Hat"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionXmlExportSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementPropertyTypes "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementInheritance "node.type.management.inheritance.multiple"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryOptionXmlImportSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryNodeTypeManagementSameNameSiblingsSupported "true"^^<http://www.w3.org/2001/XMLSchema#string> ;
    fedora:repositoryJcrRepositoryVendorUrl "http://www.modeshape.org"^^<http://www.w3.org/2001/XMLSchema#string> .

<http://localhost:8080/fcrepo/rest/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> .

<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> .

<http://localhost:8080/fcrepo/rest/> fedora:exportsAs <http://localhost:8080/fcrepo/rest/fcr:export?format=jcr/xml> ;
    fedora:hasTransactionProvider <http://localhost:8080/fcrepo/rest/fcr:tx> .

@ruebot
Copy link
Member

ruebot commented Mar 24, 2016

...and facepalm. There isn't a GET method for the collection service.

@whikloj I'm good with merging this as is if @DiegoPino is cool with it. Then we can continue building and create another PR.

@DiegoPino
Copy link
Contributor

@ruebot. I would say merge. Then keep adding after that (new PR)
Thanks @whikloj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants