i want to use in alfresco the alvex uploader just to grab the pdf files on my computer or repo,
i have tried to:
<field id="env:attachment" label-id="attach.doc.label" set="table>
<control template="/alvex-uploader.ftl">
<control-param name="uploadDirectory">uploads</control-param>
<control-param name="createUploadDirectory">true</control-param>
<control-param name="allowedExtensions">pdf</control-param>
</control>
</field>
but is not working.
Related
I used nutch 1.11 to crawl pages behind a login page.
The http-auth configuration looked like this:
<?xml version="1.0"?>
<auth-configuration>
<credentials authMethod="formAuth"
loginUrl=loginURL
loginFormId="loginForm"
loginRedirect="true">
<loginPostData>
<field name="user[email]"
value="username"/>
<field name="user[password]"
value="password"/>
</loginPostData>
<additionalPostHeaders>
</additionalPostHeaders>
</credentials>
</auth-configuration>
Everything worked fine. Then I updated to 1.13 (I also tried 1.18) and changed the configuration as described in the http-auth.xml file:
<auth-configuration>
<credentials authMethod="formAuth"
loginUrl=loginURL
loginFormId="loginForm"
loginRedirect="true">
<loginPostData>
<field name="user[email]"
value="username"/>
<field name="user[password]"
value="password"/>
</loginPostData>
<additionalPostHeaders>
</additionalPostHeaders>
<removedFormFields>
</removedFormFields>
<loginCookie>
<policy>BROWSER_COMPATIBILITY</policy>
</loginCookie>
</credentials>
</auth-configuration>
I also copied the nutch-site.xml and regex-urlfilter.txt file from 1.11.
Now, the login did not work anymore. After some redirects, it gives an HTML response 403. I tried all loginCookie policy entries, but nothing worked.
The login is to a Zendesk support system with Atlassian Crowd as a login provider.
Has anything changed between 1.11 and 1.13 is something more strict than before?
I'm trying to work on a existing ASP.NET project which use Oracle databases. I encountered some issues when it came to run the project. At the edmx level, Visual Studio displays an error message :
The specified store provider cannot be found in the configuration.
Here is the underlined part :
<edmx:StorageModels>
<Schema Namespace="Model1.Store" Alias="Self" Provider="Oracle.DataAccess.Client" ProviderManifestToken="10.2" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityContainer Name="Model1StoreContainer">
<EntitySet Name="PIVOT_GRID_LAYOUTS" EntityType="Model1.Store.PIVOT_GRID_LAYOUTS" store:Type="Tables" Schema="HR_DWH" />
</EntityContainer>
<EntityType Name="PIVOT_GRID_LAYOUTS">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="number" Nullable="false" />
<Property Name="NT_ACCOUNT" Type="varchar2" MaxLength="255" />
<Property Name="PIVOTGRID_NAME" Type="varchar2" MaxLength="255" />
<Property Name="LAYOUT_STRING" Type="varchar2" />
<Property Name="LAYOUT_NAME" Type="varchar2" MaxLength="255" />
<Property Name="LAYOUT_STRING_CLOB" Type="clob" />
</EntityType>
</Schema>
</edmx:StorageModels>
After research, I understood that I had to install the ODP.NET components in order to use Oracle databases in my Visual Studio application.
So I installed Oracle 11g R2 (x86) and then the ODAC 11.2.0.3. I thought it would be enough to make the things work but apparently it is not.
Any lead on that? I kinda followed lots of tutorials but can't figure out what I'm doing wrong.
Using the AjaxControlToolkit.config file from the ASP.NET Ajax Toolscriptmanager page:
<ajaxControlToolkit>
<controlBundles>
<controlBundle>
<control name="AccordionExtender"></control>
<control name="CalendarExtender"></control>
<control name="HtmlEditorExtender"></control>
</controlBundle>
</controlBundles>
</ajaxControlToolkit>
Generates the error message 'AjaxControlToolkit is not declared'. Don't know where or how to declare it.
That is just visual studio letting you know it is not defined but it will not affect the functionality. It will work fine assuming you have your AjaxControlToolkit config file in the root directory with your control bundles defined properly
I have that 'error' too but am able to use control bundles just fine in my toolkitscriptmanager; I just ignore the error
Is there a way to remove parameters from the generated SetParameters.xml within an MSDeploy package.
My Parameters.xml looks like this:
<parameter name="Server" defaultValue="" />
<parameter name="Directory" defaultValue="" />
<parameter name="Service URL" defaultValue="http://{Server}/{Directory}/Services/GeneralIntegrationService.svc" tags="hidden">
<parameterEntry kind="XmlFile" scope="Web.config" match="//system.serviceModel/client/endpoint[#name='BasicHttpBinding_IGeneralIntegrationService']/#address" />
what I want is the generated SetParameters.xml to only contain the first 2 parameters.
I've reviewed this question:
Can MSBuild exclude "Hidden" Web Deploy parameters from the generated SetParameters.xml?
however, I can't get my head around how the .targets file is supposed to set up. Can someone detail a complete example of what the parameters.xml and the .targets file looks like. Also, is there anything I need to set in the build properties of the .targets file?
I don't think the SetParameters-method is designed to be used that way. I would use config-transforms for parameters you want to hide from the person installing the application.
Edit
Actually, for your scenario, you could do a "search and replace" in the Web.config to get the desired result
In your parameters.xml
<parameters>
<parameter name="Server" description="" defaultValue="" tags="">
<parameterEntry kind="TextFile" scope="\\web.config$" match="##Server##" />
</parameter>
<parameter name="Directory" description="" defaultValue="" tags="">
<parameterEntry kind="TextFile" scope="\\web.config$" match="##Directory##" />
</parameter>
</parameters>
And where you need the endpoint address in the Web.Config, just put the URL like this:
http://##Server##/##Directory##/Services/GeneralIntegrationService.svc
How can I encrypt the data config portion here?:
<dataConfig>
<dataSource type="JdbcDataSource" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://127.0.0.1;databaseName=emp" user="user" password="user"/>
<document name="reviews">
<entity name="COMMON" query="select id,name from users" >
<field column="id" name="id"/>
<field column="name" name="name"/>
</entity>
</document>
</dataConfig>
Basically, I don't want to expose the user and password.
Alternately, if data config files cannot be encrypted (partly or completely), can I do indexing of a database using SolrJ such that I do not have to configure a data config file? That is, I pass the url and authentication parameters using SolrJ apis?
A more secure option, I would suggest is to configure a JNDI in your webserver.
How to configure a JNDI? This Page explains how to do so with Tomcat. It can be done for other popular webservers as well.
You can use the JNDI name in your data config file as follows:
< dataSource name="xyz" jndiName="jdbc/xyz" type="JdbcDataSource"/>
See: https://wiki.apache.org/solr/SolrConfigXml#System_property_substitution
You can keep them as properties in the file <solr.home>/conf/solrcore.properties and refer them in your data config. So your data-config.xml will be like:
<dataSource type="JdbcDataSource"
driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://${jdbc.host}:${jdbc.port}/${db.name}"
user="${jdbc.username}"
password="${jdbc.password}"/>
where everything in ${...} is a property in solrcore.properties like:
jdbc.host=http://127.0.0.1
jdbc.port=3306
db.name=emp
...