How to create URL to browse an artifact in NEXUS repository? - nexus

I want to generate a URL to browse directly to any artifact.
I can browse a specific repository with the following url.
https://repository.sonatype.org/index.html#view-repositories;maven-sites~browsestorage
Is it possible to browse a specific item with a single URL?
e.g. in the above repository there is an artifact called nexus-oss/css.
I would like to have a URL that will directly expand the tree in the browsestorage view to the artifact nexus-oss/css.
Thx
derek

You can browse to it directly, but afaik not using the Nexus UI.
For example:
https://repository.sonatype.org/content/sites/maven-sites/nexus-oss/css/
If there was a url to do this, I reckon it would look like this:
https://repository.sonatype.org/index.html#view-repositories;maven-sites~browsestorage~/nexus-oss/css/maven-base.css
Since this is the url you get when you select a specific artifact and click its "Contained In Repositories" link.

Related

How can I enable directory listing for a nexus3 raw repository?

In the past I was able to view the contents of my raw repository to which I upload my javadoc sites (through dav:http:// using mvn site-deploy):
e.g. Accessing from the browser: http://myserver/nexus/content/sites/my-raw-repository/ would list the subdirectories.
Now (after admin upgraded to nexus 3.20) directory-listing does not work and I have to explicitly request for a resource page e.g.:
http://myserver/nexus/content/sites/my-raw-repository/artifact-site-name/1.0.0/apidocs/index.html
Is there a way to bring back the directory listing?
This closed issue says that nexus3 supports it, but I cannot figure out how.
I found the issue. The repository browser url is now differrent.
content/sites has become: service/rest/repository/browse.
(The old path is still available but with no directory listing. Based on the findings below, I guess it is deprecated)
I went to the browse left-menu-option -> select the raw repository -> clicked on the Html View link and it took me to the correct location.
The new link is now: http://myserver/nexus/service/rest/repository/browse/my-raw-repository/
Something noteable is that now when reaching the actual resource file (e.g. html),
that resource file link is differrent: http://myserver/nexus/repository/my-raw-repository/path/to/the/htmlpage.html
so instead of service/rest/repository/browse/my-raw-repository/ it is repository/my-raw-repository/ (which also does not support directory listing)

Artifactory is not listing artifacts on web page

I have Jfrog Artifactory 6.11.1 using derby database and we have 94k artifacts are inside and now i am not able to see the those artifacts and when i go backend and check and filestore are very much there about 18GB data.
Please assist me to locate or update which files or properties or xml , look at and get back 94k artifacts back on Artifactory web page
Perhaps you have filters on the tree view?
If so, you can un-filter by clicking on the top-right filter button. If you have any filter on package types or repository types, you can remove it by click on the 'X'.

Artifactory - "Set Me Up" shows wrong URL

I am running an artifactory (v4) instance. When clicking via gui on artifacts there is a "set me up" button which shows you the repository url in which an artifact is located.
This URL is wrong in my case. It is a https:// but it should be normal http://
Can someone tell me in which hidden .xml file I can fix this wrong url?
The url that used in "set me up" and other links in JFrog's Artifactory is configured by Custom Base URL.
Go to "admin" > "configuration" > "general" and change it there to http://your-server/artifactory.

Start page without filename and extension in the URL

I am setting up a blank project in Visual Studio 2012 and have set my index.html as the start page. The problem I am having is that the URL now says "localhost:64237/app/index.html" as it is including the path to the index page.
I want to be able to type in "localhost:64237" and have it still access the index page, without showing me the rest of the path or the filename/extension in the URL.
Right-click the project and go to properties. Select "web" on the left-hand side. Under the "servers" section, you should be able to set it up with out "app". Once that's done, it should work like you want. If not, look into IIS and Virtual Directories.
You can use routing.
By using routing you can change this:
http://www.mywebsite.com/Product/ProductDetails.aspx?id=1
http://www.mywebsite.com/ProductProductDetails.aspx?name=Apple
into this:
http://www.mywebsite.com/Product/1
http://www.mywebsite.com/Product/Apple
or this:
http://www.mywebsite.com/Apple
Find more info in google about ASP.NET Routing.
good luck

Get the uploaded document url through alfresco

I am very new to alfresco(using version 3.4). I have written a document library action to validate the uploaded file. Now I want path of uploaded file so that I can pass it to my service to validate. Can any one tell me how could I get the downloadable path of a document ??
THanks....
I don't know how you've build your action. But on the client side Javascript you could access file.path.
On the repository side webscript, the normal action imports action.lib.js.
In which the path variable is available.
If you take a look at e.g. Backup Action in the googlecode project share-extra's then you'll probably will know what I mean.
The URL download path?
If you know the nodeRef of the document, you can construct the path yourself.
Here's an example:
http://localhost/share/proxy/alfresco/api/node/content/versionStore/version2Store/169c2842-6bc8-4ace-9b9f-1a46aebb100b/MyFile.pdf?a=true
Everything up to and including the "version2Store" is fixed, and then you have the nodeRef/file part. That's the download link for a document (assuming the user is logged in and can have access to the document or the document is accessible for guests.

Resources